Skip to content

Commit 091ad57

Browse files
committed
#32: * fix error code issue in network
1 parent 6c000f9 commit 091ad57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ PHPAPI int php_network_connect_socket(php_socket_t sockfd,
440440

441441
ok:
442442
if (!asynchronous) {
443+
error = errno;
443444
/* back to blocking mode */
444445
RESTORE_SOCKET_BLOCKING_MODE(sockfd, orig_flags);
445446
}

0 commit comments

Comments
 (0)