]> git.sur5r.net Git - openldap/commitdiff
Unbind all connections on shutdown
authorHoward Chu <hyc@openldap.org>
Wed, 19 Nov 2003 05:23:17 +0000 (05:23 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 19 Nov 2003 05:23:17 +0000 (05:23 +0000)
servers/slurpd/ri.c

index a614c4e2f66ffc0d74536dd9a5c127463424cf00..0e30f551c9dae185bb6160ea1de586714e158080 100644 (file)
@@ -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;
        }
     }