mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
ares: Curl_resolver_wait_resolv: clear *entry first in function
This commit is contained in:
parent
bfaab3180c
commit
958e176688
@ -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! */
|
||||
|
Loading…
Reference in New Issue
Block a user