diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-15 14:14:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-15 14:14:47 +0000 |
commit | b093f2d13329c875ce90724d2a3f46e3687046b9 (patch) | |
tree | 066bd812aee842bca9a823a007d9cd6860706f57 /src/util/connection.c | |
parent | 33ecaab482926fb0ae1cea3590cb36129732b4ef (diff) | |
download | gnunet-b093f2d13329c875ce90724d2a3f46e3687046b9.tar.gz gnunet-b093f2d13329c875ce90724d2a3f46e3687046b9.zip |
assert earlier
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
721 | int error; | 721 | int error; |
722 | unsigned int len; | 722 | unsigned int len; |
723 | 723 | ||
724 | GNUNET_assert (ap->sock != NULL); | ||
724 | GNUNET_CONTAINER_DLL_remove (h->ap_head, h->ap_tail, ap); | 725 | GNUNET_CONTAINER_DLL_remove (h->ap_head, h->ap_tail, ap); |
725 | len = sizeof (error); | 726 | len = sizeof (error); |
726 | errno = 0; | 727 | errno = 0; |
@@ -738,7 +739,6 @@ connect_probe_continuation (void *cls, | |||
738 | return; | 739 | return; |
739 | } | 740 | } |
740 | GNUNET_assert (h->sock == NULL); | 741 | GNUNET_assert (h->sock == NULL); |
741 | GNUNET_assert (ap->sock != NULL); | ||
742 | h->sock = ap->sock; | 742 | h->sock = ap->sock; |
743 | GNUNET_assert (h->addr == NULL); | 743 | GNUNET_assert (h->addr == NULL); |
744 | h->addr = GNUNET_malloc (ap->addrlen); | 744 | h->addr = GNUNET_malloc (ap->addrlen); |