mirror of
https://github.com/curl/curl.git
synced 2026-07-26 07:47:33 +03:00
hostip: bad CURLOPT_RESOLVE syntax now returns error
Added test 3019 Fixes #7170 Closes #7174
This commit is contained in:
parent
002f976cdc
commit
cb39b4b7c4
3 changed files with 41 additions and 3 deletions
|
|
@ -1104,10 +1104,10 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
|
|||
error = false;
|
||||
err:
|
||||
if(error) {
|
||||
infof(data, "Couldn't parse CURLOPT_RESOLVE entry '%s'!\n",
|
||||
failf(data, "Couldn't parse CURLOPT_RESOLVE entry '%s'!",
|
||||
hostp->data);
|
||||
Curl_freeaddrinfo(head);
|
||||
continue;
|
||||
return CURLE_SETOPT_OPTION_SYNTAX;
|
||||
}
|
||||
|
||||
/* Create an entry id, based upon the hostname and port */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue