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:
3242a17
)
nonceg: Insert id mapping when allocating nonce
author
Adrian-Ken Rueegsegger
<ken@codelabs.ch>
Wed, 22 Aug 2012 08:53:08 +0000
(10:53 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Tue, 19 Mar 2013 14:23:46 +0000
(15:23 +0100)
src/charon-tkm/src/tkm/tkm_nonceg.c
patch
|
blob
|
history
diff --git
a/src/charon-tkm/src/tkm/tkm_nonceg.c
b/src/charon-tkm/src/tkm/tkm_nonceg.c
index
7079412
..
2723a3e
100644
(file)
--- a/
src/charon-tkm/src/tkm/tkm_nonceg.c
+++ b/
src/charon-tkm/src/tkm/tkm_nonceg.c
@@
-56,7
+56,12
@@
METHOD(nonce_gen_t, allocate_nonce, bool,
private_tkm_nonceg_t *this, size_t size, chunk_t *chunk)
{
*chunk = chunk_alloc(size);
- return get_nonce(this, chunk->len, chunk->ptr);
+ if (get_nonce(this, chunk->len, chunk->ptr))
+ {
+ tkm->chunk_map->insert(tkm->chunk_map, chunk, this->context_id);
+ return TRUE;
+ }
+ return FALSE;
}
METHOD(nonce_gen_t, destroy, void,