]> git.sur5r.net Git - openldap/commitdiff
Minor cleanups for ITS#2620 from HEAD
authorHoward Chu <hyc@openldap.org>
Wed, 19 Nov 2003 09:02:37 +0000 (09:02 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 19 Nov 2003 09:02:37 +0000 (09:02 +0000)
servers/slurpd/main.c
servers/slurpd/ri.c

index 2315ad5c790dcbca1245705fe211b43718c2ae06..3d659b34dd6b5daea6a130171dd2a77787066b45 100644 (file)
@@ -288,6 +288,10 @@ stop:
     /* destroy the thread package */
     ldap_pvt_thread_destroy();
 
+#ifdef HAVE_TLS
+    ldap_pvt_tls_destroy();
+#endif
+
 #ifdef NEW_LOGGING
        LDAP_LOG ( SLURPD, RESULTS, "main: slurpd terminated\n", 0, 0, 0 );
 #else
index a614c4e2f66ffc0d74536dd9a5c127463424cf00..090c188531b1e85ffe779cc3c4c9553d0b612f02 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;
        }
     }