Skip to content

Commit

Permalink
RESOLVE: output verbose text when trying to set a duplicate name
Browse files Browse the repository at this point in the history
... to help users understand what is or isn't done!
  • Loading branch information
bagder committed Dec 9, 2017
1 parent bbea75a commit b1b9430
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/hostip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b1b9430

Please sign in to comment.