Skip to content

Commit 9bef438

Browse files
committed
#32: * fix php_network_getaddresses_async issue with -1 return value
1 parent 1023685 commit 9bef438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/network_async.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ ZEND_API int php_network_getaddresses_async(const char *host, int socktype, stru
10271027
} else {
10281028
php_error_docref(NULL, E_WARNING, "getaddrinfo for %s failed", host);
10291029
}
1030-
return -1;
1030+
return 0;
10311031
}
10321032

10331033
if (result == NULL) {
@@ -1039,7 +1039,7 @@ ZEND_API int php_network_getaddresses_async(const char *host, int socktype, stru
10391039
} else {
10401040
php_error_docref(NULL, E_WARNING, "no addresses found for %s", host);
10411041
}
1042-
return -1;
1042+
return 0;
10431043
}
10441044

10451045
/* Count the number of addresses */

0 commit comments

Comments
 (0)