From: Christian Grothoff Date: Sun, 15 Aug 2010 14:14:47 +0000 (+0000) Subject: assert earlier X-Git-Tag: initial-import-from-subversion-38251~20690 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b093f2d13329c875ce90724d2a3f46e3687046b9;p=oweals%2Fgnunet.git assert earlier --- 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);