1
0
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:
Adam Dickmeiss
2001-05-30 11:58:25 +00:00
parent 6cf6835a4d
commit 9667d6b381

View File

@@ -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)
{