From 0e1b52b23e7d434b359de6807b2455c1ab75d4a7 Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 16 Jan 2026 18:19:14 -0500 Subject: [PATCH] Fix #2325 (#2331) * Fix #2325 * clang-format --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 526623a..44cc8fb 100644 --- a/httplib.h +++ b/httplib.h @@ -4788,7 +4788,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service, // Allocate on the heap, so the resolver thread can keep using the data. auto state = std::make_shared(); - state->node = node; + if (node) { state->node = node; } state->service = service; state->hints = *hints;