mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
hostip: don't store negative lookup on OOM
When convert_ipaddr_direct() returns error due to OOM, it must not be stored as a negative cache result. Closes #19484
This commit is contained in:
parent
9c87b3ef80
commit
a862920246
1 changed files with 3 additions and 1 deletions
|
|
@ -904,8 +904,10 @@ CURLcode Curl_resolv(struct Curl_easy *data,
|
|||
|
||||
#ifndef USE_RESOLVE_ON_IPS
|
||||
/* allowed to convert, hostname is IP address, then NULL means error */
|
||||
if(is_ipaddr)
|
||||
if(is_ipaddr) {
|
||||
keep_negative = FALSE;
|
||||
goto error;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Really need a resolver for hostname. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue