ugh
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 17 Oct 2011 14:16:39 +0000 (14:16 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 17 Oct 2011 14:16:39 +0000 (14:16 +0000)
src/ats/ats_api_performance.c

index ae83edcc777f28c1edac6f374ca3fe33cc6e34e6..af977cb668a6c678fd469b32df2524b229ae6049 100644 (file)
@@ -516,7 +516,7 @@ GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph)
     GNUNET_SCHEDULER_cancel (ph->task);
     ph->task = GNUNET_SCHEDULER_NO_TASK;
   }
-  if (NULL != client)
+  if (NULL != ph->client)
   {
     GNUNET_CLIENT_disconnect (ph->client, GNUNET_NO);
     ph->client = NULL;