fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 14:03:36 +0000 (14:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 14:03:36 +0000 (14:03 +0000)
src/ats/ats_api_performance.c

index 47f6180f60373613403d3ace82dd77a50a6eef98..ae83edcc777f28c1edac6f374ca3fe33cc6e34e6 100644 (file)
@@ -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);
 }