fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 8 Nov 2009 21:22:51 +0000 (21:22 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 8 Nov 2009 21:22:51 +0000 (21:22 +0000)
src/util/client.c

index 0f83f659af08c3e45846c30c84c248354707d52b..bfeaccc25fa422d987dd026ec38c6aad60a55a5e 100644 (file)
@@ -708,8 +708,9 @@ client_delayed_retry (void *cls,
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Transmission failed due to shutdown.\n");
 #endif
+      th->sock->th = NULL;
       th->notify (th->notify_cls, 0, NULL);
-      GNUNET_free (th);
+      GNUNET_free (th);      
       return;
     }
   th->th = GNUNET_CONNECTION_notify_transmit_ready (th->sock->sock,