Commit 958e1766 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ares: Curl_resolver_wait_resolv: clear *entry first in function

parent bfaab318
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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! */