From: Christian Grothoff Date: Sun, 2 Oct 2011 22:38:36 +0000 (+0000) Subject: fix 1814 X-Git-Tag: initial-import-from-subversion-38251~16840 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8befb083806c2280a49ff0d4912bc27aadc81ca2;p=oweals%2Fgnunet.git fix 1814 --- diff --git a/src/util/connection.c b/src/util/connection.c index 00f35dc81..bb5df7f57 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -810,7 +810,8 @@ try_connect_using_address (void *cls, const struct sockaddr *addr, if (addr == NULL) { h->dns_active = NULL; - if (NULL == h->ap_head) + if ( (NULL == h->ap_head) && + (NULL == h->sock) ) connect_fail_continuation (h); return; } @@ -901,7 +902,7 @@ GNUNET_CONNECTION_create_from_connect (const struct GNUNET_CONFIGURATION_Handle uint16_t port) { struct GNUNET_CONNECTION_Handle *ret; - + GNUNET_assert (0 < strlen (hostname)); /* sanity check */ ret = GNUNET_malloc (sizeof (struct GNUNET_CONNECTION_Handle)); ret->cfg = cfg;