projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb6dd6f
)
dangling pointer fix
author
Nathan S. Evans
<evans@in.tum.de>
Wed, 17 Nov 2010 10:31:42 +0000
(10:31 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Wed, 17 Nov 2010 10:31:42 +0000
(10:31 +0000)
src/include/gnunet_container_lib.h
patch
|
blob
|
history
diff --git
a/src/include/gnunet_container_lib.h
b/src/include/gnunet_container_lib.h
index 480b98be89cceaf4ce3c4b1433f10c6d804788a6..1abb4c13ff68592f11d6ed954f97a828ae0162ae 100644
(file)
--- a/
src/include/gnunet_container_lib.h
+++ b/
src/include/gnunet_container_lib.h
@@
-780,7
+780,9
@@
int GNUNET_CONTAINER_multihashmap_get_multiple (const struct
if ((element)->next == NULL) \
(tail) = (element)->prev; \
else \
- (element)->next->prev = (element)->prev; } while (0)
+ (element)->next->prev = (element)->prev; \
+ (element)->next = NULL; \
+ (element)->prev = NULL; } while (0)