From 8715d97409859b646ac6d4be26f057272a6faddd Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 18 Oct 2004 21:45:13 +0000 Subject: [PATCH] Fix bug in last commit --- libraries/libldap/os-ip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }