- Fixed crash on DHT_put continuation
authorBart Polot <bart@net.in.tum.de>
Tue, 21 Feb 2012 12:36:27 +0000 (12:36 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 21 Feb 2012 12:36:27 +0000 (12:36 +0000)
src/mesh/gnunet-service-mesh.c

index a47b104db045072d0f98606e99c2f535758bafbc..d8f33b643e9bb9ea9ef53216eb6ceafe590b9d1d 100644 (file)
@@ -485,7 +485,7 @@ mesh_debug (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   char *s = cls;
 
-  if (GNUNET_SCHEDULER_REASON_SHUTDOWN == tc->reason)
+  if (NULL != tc && GNUNET_SCHEDULER_REASON_SHUTDOWN == tc->reason)
   {
     return;
   }
@@ -3975,6 +3975,7 @@ handle_local_tunnel_create (void *cls, struct GNUNET_SERVER_Client *client,
   }
   t->tree = tree_new (myid);
 
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "new tunnel created\n");
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
   return;
 }