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),
|
||||
|
||||
@@ -232,7 +232,7 @@ pa_tnc_attr_t *tcg_pts_attr_dh_nonce_finish_create(u_int8_t nonce_len,
|
||||
.nonce_len = nonce_len,
|
||||
.hash_algo = hash_algo,
|
||||
.initiator_nonce = chunk_clone(initiator_nonce),
|
||||
.initiator_pub_val = chunk_clone(initiator_pub_val),
|
||||
.initiator_pub_val = initiator_pub_val,
|
||||
);
|
||||
|
||||
return &this->public.pa_tnc_attribute;
|
||||
|
||||
Reference in New Issue
Block a user