*/
static status_t destroy(private_nonce_payload_t *this)
{
- if (this->nonce.ptr != NULL)
- {
- allocator_free(this->nonce.ptr);
- }
allocator_free(this);
return SUCCESS;
*/
static status_t get_nonce(private_nonce_payload_t *this, chunk_t *nonce)
{
- nonce->len = this->nonce.len;
nonce->ptr = this->nonce.ptr;
+ nonce->len = this->nonce.len;
return SUCCESS;
}