fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 13:40:39 +0000 (13:40 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 13:40:39 +0000 (13:40 +0000)
src/transport/test_transport_api_reliability.c

index de5079c4f0231e305b74d645d16971f1541759d0..07426ca739f2dd08863267c2507c072ca941aedc 100644 (file)
@@ -362,7 +362,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;
+    }
 }