From: Bart Polot Date: Tue, 21 Feb 2012 12:36:27 +0000 (+0000) Subject: - Fixed crash on DHT_put continuation X-Git-Tag: initial-import-from-subversion-38251~14772 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;ds=sidebyside;h=f76c13f046c8f5cafa92ee365b7a1768e339a2c5;p=oweals%2Fgnunet.git - Fixed crash on DHT_put continuation --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index a47b104db..d8f33b643 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -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; }