Commit 8715d974 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix bug in last commit

parent 86c216d1
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment