From: Howard Chu Date: Wed, 19 Nov 2003 05:23:17 +0000 (+0000) Subject: Unbind all connections on shutdown X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~431 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a718cb335c27b710c182a834653c59b6f8303662;p=openldap Unbind all connections on shutdown --- 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; } }