set to NULL
authorChristian Grothoff <christian@grothoff.org>
Fri, 27 May 2011 13:31:26 +0000 (13:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 27 May 2011 13:31:26 +0000 (13:31 +0000)
src/core/core_api.c

index 58f489da30761204e41af380d282c69ab483c361..4f433706103aee0807cdf8cb916c90cf6575246f 100644 (file)
@@ -419,6 +419,8 @@ disconnect_and_free_peer_entry (void *cls,
       GNUNET_assert (0 == 
                     th->get_message (th->get_message_cls,
                                      0, NULL));
+      if (th->cm != NULL)
+       th->cm->th = NULL;
       GNUNET_free (th);
     }
   if (NULL != (pcic = pr->pcic))