1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

(php_sockwait_for_data) timeout is not assigned yet, so check the right one.

This commit is contained in:
Andrei Zmievski
2000-01-15 20:39:06 +00:00
parent 44a712d810
commit 2fc0dac01e

View File

@@ -538,7 +538,7 @@ static void php_sockwait_for_data(php_sockbuf *sock)
FD_SET(sock->socket, &fdr);
sock->timeout_event = 0;
if (timeout.tv_sec == -1)
if (sock->timeout.tv_sec == -1)
ptimeout = NULL;
else
ptimeout = &timeout;