]> git.sur5r.net Git - openldap/commitdiff
Fix bug in last commit
authorKurt Zeilenga <kurt@openldap.org>
Mon, 18 Oct 2004 21:45:13 +0000 (21:45 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 18 Oct 2004 21:45:13 +0000 (21:45 +0000)
libraries/libldap/os-ip.c

index 460f0a1862929018e481fab394f2d417c6508eb3..8525227cf7d3d7b925541da05ed4753964571213 100644 (file)
@@ -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;
                        }
                }