diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 7c9de87ebc..a007fa1f5e 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -845,7 +845,7 @@ slapd_daemon_task( #endif for ( l = 0; slap_listeners[l] != NULL; l++ ) { - if ( i == slap_listeners[l]->sl_sd ) { + if ( rd == slap_listeners[l]->sl_sd ) { is_listener = 1; break; }