mirror of
https://github.com/php/php-src.git
synced 2026-04-12 02:23:18 +02:00
Fixed bug where yaz_connect could fail in cases where it shouldn't.
This commit is contained in:
@@ -996,15 +996,15 @@ static int do_event (int *id, int timeout)
|
||||
}
|
||||
else if (p->state == PHP_YAZ_STATE_CONNECTING)
|
||||
{
|
||||
if (FD_ISSET (fd, &input))
|
||||
if (FD_ISSET (fd, &output))
|
||||
{
|
||||
send_init(p);
|
||||
}
|
||||
else if (FD_ISSET (fd, &input))
|
||||
{
|
||||
do_close(p);
|
||||
p->error = PHP_YAZ_ERROR_CONNECT;
|
||||
}
|
||||
else if (FD_ISSET (fd, &output))
|
||||
{
|
||||
send_init(p);
|
||||
}
|
||||
}
|
||||
else if (p->state == PHP_YAZ_STATE_ESTABLISHED)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user