diff options
author | Sara Golemon <pollita@php.net> | 2004-04-09 19:18:59 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2004-04-09 19:18:59 +0000 |
commit | 3feae65f700a096cb5e2caca5608e89909ac1957 (patch) | |
tree | bc37090455b0f3cbaf22dfc55f65834072a01f0e | |
parent | ff66870b4c17bb4bd997e5200436047f3319b999 (diff) | |
download | php-git-3feae65f700a096cb5e2caca5608e89909ac1957.tar.gz |
BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday()
-rw-r--r-- | main/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |