From: Christian Grothoff Date: Sun, 15 Nov 2009 13:27:52 +0000 (+0000) Subject: adding a few more asserts to help debug X-Git-Tag: initial-import-from-subversion-38251~23083 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=36c938716afb47de5e22a07beae440a474be3961;p=oweals%2Fgnunet.git adding a few more asserts to help debug --- 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,