mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix bug in last commit
This commit is contained in:
parent
86c216d10c
commit
8715d97409
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user