From: Howard Chu Date: Thu, 9 Jun 2005 08:19:05 +0000 (+0000) Subject: ITS#3760 don't select on uninit'd writefds X-Git-Tag: OPENLDAP_AC_BP~566 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58e8817fc1dc35354618ab0e9a084ac2eaece027;p=openldap ITS#3760 don't select on uninit'd writefds --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index aafb20d75b..2797e85ecf 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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" : "" );