From 2c3ba8ff22f015f6832180401bd46b4ea54967d7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 22 Jul 2008 14:33:27 +0200 Subject: [PATCH] Fixed resolver issues - continued search. --- src/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index 197dbcb..77bd8e7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -189,7 +189,7 @@ struct connection *connection_create(struct client *cl) client_set_connection(cl, new); new->link = 0; new->resultset = 0; - new->state = Conn_Connecting; + new->state = Conn_Resolving; if (host->ipport) connection_connect(new); return new; @@ -309,6 +309,7 @@ void connect_resolver_host(struct host *host) else { connection_connect(con); + client_start_search(con->client); } } else @@ -453,7 +454,7 @@ int client_prep_connection(struct client *cl) co = connection_create(cl); } - if (co) + if (co && co->link) return 1; else return 0; -- 1.7.10.4