Skip to content

Commit

Permalink
chunk_clone when set key id
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrotega committed Nov 12, 2024
1 parent b51957c commit e6f4c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstrongswan/plugins/qkd/qkd_etsi_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ bool qkd_set_key_id(qkd_handle_t handle, chunk_t key_id)
}

chunk_clear(&handle->key_id);
//handle->key_id = chunk_clone(key_id);
handle->key_id = chunk_create(key_id.ptr, key_id.len);
handle->key_id = chunk_clone(key_id);
//handle->key_id = chunk_create(key_id.ptr, key_id.len);
DBG1(DBG_LIB, "\t Bob received ID: %s", handle->key_id.ptr);
DBG1(DBG_LIB, "\t Bob received ID [key_id]: %s", key_id.ptr);
DBG1(DBG_LIB, "\t Bob received ID [key_id len]: %d", key_id.len);
Expand Down

0 comments on commit e6f4c4f

Please sign in to comment.