diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asyn-ares.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 4baaef06a..281fb03c8 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -358,6 +358,9 @@ CURLcode Curl_resolver_wait_resolv(struct connectdata *conn, struct timeval now = Curl_tvnow(); struct Curl_dns_entry *temp_entry; + if(entry) + *entry = NULL; /* clear on entry */ + timeout = Curl_timeleft(data, &now, TRUE); if(timeout < 0) { /* already expired! */ |