-fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 20 Jan 2012 17:10:46 +0000 (17:10 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 20 Jan 2012 17:10:46 +0000 (17:10 +0000)
src/util/helper.c

index d0aab3ccf1cea2e1aac53be961be6181be48be8e..33c4c47ccf18f4e35351132e4df0c80cd79d4607 100644 (file)
@@ -473,6 +473,8 @@ GNUNET_HELPER_send (struct GNUNET_HELPER_Handle *h,
   struct HelperMessageQueueEntry *qe;
   uint16_t mlen;
 
+  if (NULL == h->fh_to_helper)
+    return GNUNET_NO;
   if ( (GNUNET_YES == can_drop) &&
        (h->mq_head != NULL) )
     return GNUNET_NO;