strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
697aa8f
)
-removed freeing of nonce data
author
Jan Hutter
<jhutter@hsr.ch>
Mon, 21 Nov 2005 09:20:43 +0000
(09:20 -0000)
committer
Jan Hutter
<jhutter@hsr.ch>
Mon, 21 Nov 2005 09:20:43 +0000
(09:20 -0000)
Source/charon/payloads/nonce_payload.c
patch
|
blob
|
history
diff --git
a/Source/charon/payloads/nonce_payload.c
b/Source/charon/payloads/nonce_payload.c
index
36a8def
..
5165629
100644
(file)
--- a/
Source/charon/payloads/nonce_payload.c
+++ b/
Source/charon/payloads/nonce_payload.c
@@
-137,10
+137,6
@@
static status_t verify(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);
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)
{
- nonce->len = this->nonce.len;
nonce->ptr = this->nonce.ptr;
+ nonce->len = this->nonce.len;
return SUCCESS;
}