fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jul 2011 17:27:25 +0000 (17:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jul 2011 17:27:25 +0000 (17:27 +0000)
src/transport/test_transport_api_unreliability.c

index 0bc85b174854853410620a1b4b6401d30b48f25d..7f31edffd237b367130f387ade381b1db89ce229 100644 (file)
@@ -466,7 +466,10 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
              GNUNET_i2s (peer), cls);
 #endif
   if (th_p2 != NULL)
-    GNUNET_TRANSPORT_notify_transmit_ready_cancel(th_p2);
+    {
+      GNUNET_TRANSPORT_notify_transmit_ready_cancel (th_p2);
+      th_p2 = NULL;
+    }
 }