From 3feae65f700a096cb5e2caca5608e89909ac1957 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 9 Apr 2004 19:18:59 +0000 Subject: [PATCH] BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday() --- main/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/network.c b/main/network.c index 42245eab899ef..ee8567967f5cb 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. */