aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-26 22:50:42 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-26 22:50:42 +0000
commitbfc70f045a8e34de985f7e8bcbcc2fca52e404e9 (patch)
tree6dcbcf5ede9cb552841a60f46f931f618f5033ae /src/util
parentb8ae7e40861eaab57ea7473750049d46c4f49266 (diff)
downloadgnunet-bfc70f045a8e34de985f7e8bcbcc2fca52e404e9.tar.gz
gnunet-bfc70f045a8e34de985f7e8bcbcc2fca52e404e9.zip
-allow NULL
Diffstat (limited to 'src/util')
-rw-r--r--src/util/helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/helper.c b/src/util/helper.c
index c7e059237..029203638 100644
--- a/src/util/helper.c
+++ b/src/util/helper.c
@@ -189,7 +189,8 @@ stop_helper (struct GNUNET_HELPER_Handle *h)
189 GNUNET_CONTAINER_DLL_remove (h->mq_head, 189 GNUNET_CONTAINER_DLL_remove (h->mq_head,
190 h->mq_tail, 190 h->mq_tail,
191 qe); 191 qe);
192 qe->cont (qe->cont_cls, GNUNET_NO); 192 if (NULL != qe->cont)
193 qe->cont (qe->cont_cls, GNUNET_NO);
193 GNUNET_free (qe); 194 GNUNET_free (qe);
194 } 195 }
195 /* purge MST buffer */ 196 /* purge MST buffer */
@@ -387,7 +388,8 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h)
387 GNUNET_CONTAINER_DLL_remove (h->mq_head, 388 GNUNET_CONTAINER_DLL_remove (h->mq_head,
388 h->mq_tail, 389 h->mq_tail,
389 qe); 390 qe);
390 qe->cont (qe->cont_cls, GNUNET_SYSERR); 391 if (NULL != qe->cont)
392 qe->cont (qe->cont_cls, GNUNET_SYSERR);
391 GNUNET_free (qe); 393 GNUNET_free (qe);
392 } 394 }
393 stop_helper (h); 395 stop_helper (h);