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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user