From b093f2d13329c875ce90724d2a3f46e3687046b9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Aug 2010 14:14:47 +0000 Subject: [PATCH] assert earlier --- src/util/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/connection.c b/src/util/connection.c index 57720c07e..cfe7fee9b 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -721,6 +721,7 @@ connect_probe_continuation (void *cls, int error; unsigned int len; + GNUNET_assert (ap->sock != NULL); GNUNET_CONTAINER_DLL_remove (h->ap_head, h->ap_tail, ap); len = sizeof (error); errno = 0; @@ -738,7 +739,6 @@ connect_probe_continuation (void *cls, 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); -- 2.25.1