gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19463 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r19463 - gnunet/src/util
Date: Thu, 26 Jan 2012 23:50:42 +0100

Author: grothoff
Date: 2012-01-26 23:50:42 +0100 (Thu, 26 Jan 2012)
New Revision: 19463

Modified:
   gnunet/src/util/helper.c
Log:
-allow NULL

Modified: gnunet/src/util/helper.c
===================================================================
--- gnunet/src/util/helper.c    2012-01-26 22:46:30 UTC (rev 19462)
+++ gnunet/src/util/helper.c    2012-01-26 22:50:42 UTC (rev 19463)
@@ -189,7 +189,8 @@
     GNUNET_CONTAINER_DLL_remove (h->mq_head,
                                 h->mq_tail,
                                 qe);
-    qe->cont (qe->cont_cls, GNUNET_NO);
+    if (NULL != qe->cont)
+      qe->cont (qe->cont_cls, GNUNET_NO);
     GNUNET_free (qe);
   }
   /* purge MST buffer */
@@ -387,7 +388,8 @@
     GNUNET_CONTAINER_DLL_remove (h->mq_head,
                                 h->mq_tail,
                                 qe);
-    qe->cont (qe->cont_cls, GNUNET_SYSERR);
+    if (NULL != qe->cont)
+      qe->cont (qe->cont_cls, GNUNET_SYSERR);
     GNUNET_free (qe);
   }
   stop_helper (h);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]