From f76c13f046c8f5cafa92ee365b7a1768e339a2c5 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 21 Feb 2012 12:36:27 +0000 Subject: [PATCH] - Fixed crash on DHT_put continuation --- src/mesh/gnunet-service-mesh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.25.1