]> granicus.if.org Git - php/commitdiff
BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettime...
authorSara Golemon <pollita@php.net>
Fri, 9 Apr 2004 19:18:59 +0000 (19:18 +0000)
committerSara Golemon <pollita@php.net>
Fri, 9 Apr 2004 19:18:59 +0000 (19:18 +0000)
main/network.c

index 42245eab899efd25bd3855a9df8c2e88cd0c5258..ee8567967f5cb53048b71555d2c6f2623e39dd6f 100644 (file)
@@ -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. */