summaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-10 00:41:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-10 00:41:57 +0100
commitb1b94305d896e4204159871318d6d08109b44764 (patch)
treef56f91ebae72dfea4f85734f5866175c2e2e9b7a /lib/hostip.c
parentbbea75ad69d1347f8ae8bdf1b3ffa72f93a0252f (diff)
downloadcurl-b1b94305d896e4204159871318d6d08109b44764.tar.gz
RESOLVE: output verbose text when trying to set a duplicate name
... to help users understand what is or isn't done!
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index ee2d4d2b5..886aeec42 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -877,9 +877,12 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
dns->inuse--;
}
}
- else
+ else {
/* this is a duplicate, free it again */
+ infof(data, "RESOLVE %s:%d is already cached, %s not stored!\n",
+ hostname, port, address);
Curl_freeaddrinfo(addr);
+ }
if(data->share)
Curl_share_unlock(data, CURL_LOCK_DATA_DNS);