소스 검색

bugfix: unresolved host should return -1 instead of 0

ncannasse 6 년 전
부모
커밋
1d7469257d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/std/socket.c

+ 1 - 1
src/std/socket.c

@@ -202,7 +202,7 @@ HL_PRIM int hl_host_resolve( vbyte *host ) {
 #	endif
 		if( h == NULL ) {
 			hl_blocking(false);
-			return 0;
+			return -1;
 		}
 		ip = *((unsigned int*)h->h_addr_list[0]);
 	}