From 36c938716afb47de5e22a07beae440a474be3961 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Nov 2009 13:27:52 +0000 Subject: [PATCH] adding a few more asserts to help debug --- src/util/connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/connection.c b/src/util/connection.c index 6463972be..c12ea2751 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -678,6 +678,8 @@ connect_probe_continuation (void *cls, connect_fail_continuation (h); return; } + GNUNET_assert (h->sock == NULL); + GNUNET_assert (ap->sock != NULL); h->sock = ap->sock; GNUNET_assert (h->addr == NULL); h->addr = GNUNET_malloc (ap->addrlen); @@ -721,6 +723,7 @@ try_connect_using_address (void *cls, } if (h->sock != NULL) return; /* already connected */ + GNUNET_assert (h->addr == NULL); /* try to connect */ #if DEBUG_CONNECTION GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, -- 2.25.1