mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-27 12:31:28 +00:00
1 parent
c0469eba96
commit
0e1b52b23e
1 file changed
+1
-1
@@ -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.
|
// Allocate on the heap, so the resolver thread can keep using the data.
|
||||||
auto state = std::make_shared<GetAddrInfoState>();
|
auto state = std::make_shared<GetAddrInfoState>();
|
||||||
state->node = node;
|
if (node) { state->node = node; }
|
||||||
state->service = service;
|
state->service = service;
|
||||||
state->hints = *hints;
|
state->hints = *hints;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user