From 718cbd936d286ddf953fb58647e8161e4b71448f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 May 2011 13:31:26 +0000 Subject: set to NULL --- src/core/core_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/core_api.c b/src/core/core_api.c index 58f489da3..4f4337061 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -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)) -- cgit v1.2.3