← Commit list

02113a6307

x2018
x2018
2025-10-28
SUCCESS Duration: 157s

Subject

Curl_resolv: explicitly set *entry to NULL at the top

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+2 -1
@@ -848,6 +848,8 @@ CURLcode Curl_resolv(struct Curl_easy *data,
size_t hostname_len;
bool keep_negative = TRUE; /* cache a negative result */
+ *entry = NULL;
+
#ifndef CURL_DISABLE_DOH
data->conn->bits.doh = FALSE; /* default is not */
#else
@@ -969,7 +971,6 @@ out:
error:
if(dns)
Curl_resolv_unlink(data, &dns);
- *entry = NULL;
Curl_async_shutdown(data);
if(keep_negative)
store_negative_resolve(data, hostname, port);