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:
19e0010
)
accept NULL values in hashtable enumerator
author
Martin Willi
<martin@strongswan.org>
Fri, 5 Dec 2008 12:34:17 +0000
(12:34 -0000)
committer
Martin Willi
<martin@strongswan.org>
Fri, 5 Dec 2008 12:34:17 +0000
(12:34 -0000)
src/libstrongswan/utils/hashtable.c
patch
|
blob
|
history
diff --git
a/src/libstrongswan/utils/hashtable.c
b/src/libstrongswan/utils/hashtable.c
index
9742921
..
6b53ec2
100644
(file)
--- a/
src/libstrongswan/utils/hashtable.c
+++ b/
src/libstrongswan/utils/hashtable.c
@@
-332,8
+332,14
@@
static bool enumerate(private_enumerator_t *this, void **key, void **value)
if (this->current->enumerate(this->current, &pair))
{
- *key = pair->key;
- *value = pair->value;
+ if (key)
+ {
+ *key = pair->key;
+ }
+ if (value)
+ {
+ *value = pair->value;
+ }
return TRUE;
}
this->current->destroy(this->current);