From 58e8817fc1dc35354618ab0e9a084ac2eaece027 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 9 Jun 2005 08:19:05 +0000 Subject: [PATCH] ITS#3760 don't select on uninit'd writefds --- servers/slapd/daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" : "" ); -- 2.39.5