mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3760 don't select on uninit'd writefds
This commit is contained in:
parent
caefdf007c
commit
58e8817fc1
@ -1807,7 +1807,8 @@ slapd_daemon_task(
|
||||
int r, w;
|
||||
|
||||
r = SLAP_EVENT_IS_READ( i );
|
||||
w = SLAP_EVENT_IS_WRITE( i );
|
||||
/* writefds was not initialized if nwriters was zero */
|
||||
w = nwriters ? SLAP_EVENT_IS_WRITE( i ) : 0;
|
||||
if ( r || w ) {
|
||||
Debug( LDAP_DEBUG_CONNS, " %d%s%s", i,
|
||||
r ? "r" : "", w ? "w" : "" );
|
||||
|
Loading…
Reference in New Issue
Block a user