Fixed some memory leaks
This commit is contained in:
committed by
Andreas Steffen
parent
4b3d992d08
commit
ef8ea80a28
@@ -373,7 +373,7 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
|
||||
{
|
||||
return TNC_RESULT_FATAL;
|
||||
}
|
||||
responder_pub_val = pts->get_my_pub_val(pts);
|
||||
pts->get_my_pub_val(pts, &responder_pub_val);
|
||||
|
||||
attr = tcg_pts_attr_dh_nonce_params_resp_create(NONCE_LEN,
|
||||
selected_dh_group, supported_algorithms,
|
||||
|
||||
@@ -315,7 +315,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
|
||||
|
||||
/* Send DH nonce finish attribute */
|
||||
selected_algorithm = pts->get_meas_algorithm(pts);
|
||||
initiator_pub_val = pts->get_my_pub_val(pts);
|
||||
pts->get_my_pub_val(pts, &initiator_pub_val);
|
||||
|
||||
attr = tcg_pts_attr_dh_nonce_finish_create(NONCE_LEN,
|
||||
selected_algorithm,
|
||||
chunk_create(initiator_nonce, NONCE_LEN),
|
||||
|
||||
Reference in New Issue
Block a user