From: Sara Golemon Date: Fri, 9 Apr 2004 19:18:59 +0000 (+0000) Subject: BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettime... X-Git-Tag: php-5.0.0RC2RC1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3feae65f700a096cb5e2caca5608e89909ac1957;p=php BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday() --- diff --git a/main/network.c b/main/network.c index 42245eab89..ee8567967f 100644 --- a/main/network.c +++ b/main/network.c @@ -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. */