fixing 1729
authorChristian Grothoff <christian@grothoff.org>
Thu, 7 Jul 2011 12:21:30 +0000 (12:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 7 Jul 2011 12:21:30 +0000 (12:21 +0000)
src/transport/transport_api.c

index 15d4d12239d86094d6d9ac2a7dc010e87cc033c7..7b5798ce06d47a5bb7661a0962ee59a804dab2ce 100644 (file)
@@ -1086,7 +1086,8 @@ send_hello (void *cls, size_t size, void *buf)
                   "Timeout while trying to transmit `%s' request.\n",
                   "HELLO");
 #endif
-      GNUNET_SCHEDULER_add_now(hc->cont, hc->cont_cls);
+      if (NULL != hc->cont)
+       GNUNET_SCHEDULER_add_now(hc->cont, hc->cont_cls);
       GNUNET_free (hc);
       return 0;
     }