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:
0208a97
)
- fix
author
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 13 Jun 2012 08:34:40 +0000
(08:34 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Wed, 13 Jun 2012 08:34:40 +0000
(08:34 +0000)
src/namestore/gnunet-service-namestore.c
patch
|
blob
|
history
diff --git
a/src/namestore/gnunet-service-namestore.c
b/src/namestore/gnunet-service-namestore.c
index 4d497c8a1c9ca7c4216e3a529f118ce973b1865f..7483c0a8956d82c03234493b63e9e53c81a5b845 100644
(file)
--- a/
src/namestore/gnunet-service-namestore.c
+++ b/
src/namestore/gnunet-service-namestore.c
@@
-251,8
+251,11
@@
cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
struct GNUNET_NAMESTORE_Client * nc;
struct GNUNET_NAMESTORE_Client * next;
- GNUNET_SERVER_notification_context_destroy (snc);
- snc = NULL;
+ if (NULL != snc)
+ {
+ GNUNET_SERVER_notification_context_destroy (snc);
+ snc = NULL;
+ }
GNUNET_CONTAINER_multihashmap_iterate(zonekeys, &zone_to_disk_it, NULL);
GNUNET_CONTAINER_multihashmap_destroy(zonekeys);