From 8befb083806c2280a49ff0d4912bc27aadc81ca2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 2 Oct 2011 22:38:36 +0000 Subject: [PATCH] fix 1814 --- src/util/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.25.1