Skip to content

Commit

Permalink
BugFix: Copy/Paste mistake referenced undefined variable on platforms…
Browse files Browse the repository at this point in the history
… without gettimeofday()
  • Loading branch information
sgolemon committed Apr 9, 2004
1 parent ff66870 commit 3feae65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/network.c
Expand Up @@ -826,7 +826,7 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short
}
}
#else
if (err == PHP_TIMEOUT_ERROR_VALUE) {
if (error_code && *error_code == PHP_TIMEOUT_ERROR_VALUE) {
/* Don't even bother trying to connect to the next alternative;
* we have no way to determine how long we have already taken
* and it is quite likely that the next attempt will fail too. */
Expand Down

0 comments on commit 3feae65

Please sign in to comment.