RESOLVE: output verbose text when trying to set a duplicate name

... to help users understand what is or isn't done!
This commit is contained in:
Daniel Stenberg 2017-12-10 00:41:57 +01:00
parent bbea75ad69
commit b1b94305d8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 4 additions and 1 deletions

View File

@ -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);