projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e646337
)
ares: Curl_resolver_wait_resolv: clear *entry first in function
17/118017/1
accepted/tizen/common/20170309.175438
accepted/tizen/ivi/20170310.031655
accepted/tizen/mobile/20170310.031333
accepted/tizen/tv/20170310.031505
accepted/tizen/unified/20170310.080622
accepted/tizen/wearable/20170310.031552
submit/tizen/20170309.032538
submit/tizen_unified/20170310.011402
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 7 Mar 2017 07:08:55 +0000
(08:08 +0100)
committer
Saurav Babu
<saurav.babu@samsung.com>
Wed, 8 Mar 2017 09:07:37 +0000
(14:37 +0530)
Change-Id: Ia55a6ca41ba2c75fedd114fcfb8aef8ddb968e4e
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
lib/asyn-ares.c
patch
|
blob
|
history
diff --git
a/lib/asyn-ares.c
b/lib/asyn-ares.c
index 177b59a73abdf90162f69c45c5cb643394f35324..4436b23512f6d6d23e5060c1b0beddda170d9862 100644
(file)
--- 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! */