-removed freeing of nonce data

This commit is contained in:
Jan Hutter
2005-11-21 09:20:43 +00:00
parent 697aa8f55d
commit abaa7fc7c7
+1 -5
View File
@@ -137,10 +137,6 @@ static status_t verify(private_nonce_payload_t *this)
*/ */
static status_t destroy(private_nonce_payload_t *this) static status_t destroy(private_nonce_payload_t *this)
{ {
if (this->nonce.ptr != NULL)
{
allocator_free(this->nonce.ptr);
}
allocator_free(this); allocator_free(this);
return SUCCESS; return SUCCESS;
@@ -168,8 +164,8 @@ static status_t set_nonce(private_nonce_payload_t *this, chunk_t nonce)
*/ */
static status_t get_nonce(private_nonce_payload_t *this, chunk_t *nonce) static status_t get_nonce(private_nonce_payload_t *this, chunk_t *nonce)
{ {
nonce->len = this->nonce.len;
nonce->ptr = this->nonce.ptr; nonce->ptr = this->nonce.ptr;
nonce->len = this->nonce.len;
return SUCCESS; return SUCCESS;
} }