From a718cb335c27b710c182a834653c59b6f8303662 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 19 Nov 2003 05:23:17 +0000 Subject: [PATCH] Unbind all connections on shutdown --- servers/slurpd/ri.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.5