← Commit list

a862920246

Daniel Stenberg
Daniel Stenberg
2025-11-12
SUCCESS Duration: 147s

Subject

hostip: don't store negative lookup on OOM

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/hostip.c+3 -1
@@ -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. */