Skip to content

Commit acaa2ec

Browse files
committed
Correct wrong var use (rebase casualty)
1 parent 1d4d380 commit acaa2ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

main/network.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ PHPAPI size_t php_network_getaddresses_ex(const char *host, int socktype, int fa
193193

194194
if ((ret = getaddrinfo(host, NULL, &hints, &res))) {
195195
# if defined(PHP_WIN32)
196-
char *gai_error = php_win32_error_to_msg(n);
196+
char *gai_error = php_win32_error_to_msg(ret);
197197
# elif defined(HAVE_GAI_STRERROR)
198-
const char *gai_error = gai_strerror(n);
198+
const char *gai_error = gai_strerror(ret);
199199
# else
200-
const char *gai_error = php_gai_strerror(n)
200+
const char *gai_error = php_gai_strerror(ret)
201201
# endif
202202
if (error_string) {
203203
/* free error string received during previous iteration (if any) */

0 commit comments

Comments
 (0)