diff --git a/servers/slurpd/ri.c b/servers/slurpd/ri.c index a614c4e2f6..0e30f551c9 100644 --- a/servers/slurpd/ri.c +++ b/servers/slurpd/ri.c @@ -169,6 +169,10 @@ Ri_process( re = new_re; rq->rq_unlock( rq ); if ( sglob->slurpd_shutdown ) { + if ( ri->ri_ldp ) { + ldap_unbind( ri->ri_ldp ); + ri->ri_ldp = NULL; + } return 0; } }