From: Christian Grothoff Date: Mon, 17 Oct 2011 14:03:36 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~16460 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06fe5bd9e6f778a23f08cec1fa8290b7a5bd4277;p=oweals%2Fgnunet.git fix --- diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index 47f6180f6..ae83edcc7 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c @@ -516,7 +516,11 @@ GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph) GNUNET_SCHEDULER_cancel (ph->task); ph->task = GNUNET_SCHEDULER_NO_TASK; } - GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); + if (NULL != client) + { + GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO); + ph->client = NULL; + } GNUNET_free (ph); }