3 커밋 b85aa76bd2 ... 0e1b52b23e

작성자 SHA1 메시지 날짜
  yhirose 0e1b52b23e Fix #2325 (#2331) 2 주 전
  yhirose c0469eba96 Revert "Fix #2325" 2 주 전
  yhirose 7dec57d1eb Fix #2325 2 주 전
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      httplib.h

+ 1 - 1
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<GetAddrInfoState>();
-  state->node = node;
+  if (node) { state->node = node; }
   state->service = service;
   state->hints = *hints;