From: Kurt Zeilenga Date: Mon, 18 Oct 2004 21:45:13 +0000 (+0000) Subject: Fix bug in last commit X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~418 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8715d97409859b646ac6d4be26f057272a6faddd;p=openldap Fix bug in last commit --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 460f0a1862..8525227cf7 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -781,7 +781,7 @@ ldap_is_write_ready( LDAP *ld, Sockbuf *sb ) int i; for(i=0; i < sip->si_maxfd; i++) { if( sip->si_fds[i].fd == sd ) { - return sip->si_fds[i].revents == POLLOUT; + return sip->si_fds[i].revents & POLLOUT; } } @@ -810,7 +810,7 @@ ldap_is_read_ready( LDAP *ld, Sockbuf *sb ) int i; for(i=0; i < sip->si_maxfd; i++) { if( sip->si_fds[i].fd == sd ) { - return sip->si_fds[i].revents == POLLIN; + return sip->si_fds[i].revents & POLLIN; } }