mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Fix bug in last commit
This commit is contained in:
parent
86c216d10c
commit
8715d97409
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue