From e3cbd18892cd2a2b8e8e156700f499738cc68ac3 Mon Sep 17 00:00:00 2001 From: Sansar Choinyambuu Date: Fri, 23 Sep 2011 16:05:21 +0200 Subject: [PATCH] Cloning chunk_t parameters in process message --- src/libpts/tcg/tcg_pts_attr_dh_nonce_finish.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libpts/tcg/tcg_pts_attr_dh_nonce_finish.c b/src/libpts/tcg/tcg_pts_attr_dh_nonce_finish.c index 89a0078fb..eeca38e96 100644 --- a/src/libpts/tcg/tcg_pts_attr_dh_nonce_finish.c +++ b/src/libpts/tcg/tcg_pts_attr_dh_nonce_finish.c @@ -190,7 +190,9 @@ METHOD(pa_tnc_attr_t, process, status_t, this->hash_algo = hash_algo; reader->read_data(reader, reader->remaining(reader) - this->nonce_len, &this->initiator_pub_val); + this->initiator_pub_val = chunk_clone(this->initiator_pub_val); reader->read_data(reader, this->nonce_len, &this->initiator_nonce); + this->initiator_nonce = chunk_clone(this->initiator_nonce); >>>>>>> Implemented Diffie Hellman Nonce attributes reader->destroy(reader);