]> git.sur5r.net Git - openldap/commitdiff
ITS#3842 from jtownsend@opendarwin.org - don't free slap_listeners until
authorHoward Chu <hyc@openldap.org>
Thu, 7 Jul 2005 04:21:53 +0000 (04:21 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 7 Jul 2005 04:21:53 +0000 (04:21 +0000)
after connection_shutdown().

servers/slapd/daemon.c

index 3b93244c3723eab5e42beb7c1c389fb67cceaeda..6abea22fc210c6779d463658ea803fb069f11aef 100644 (file)
@@ -2013,9 +2013,6 @@ slapd_daemon_task(
                close_listeners ( 0 );
        }
 
-       free ( slap_listeners );
-       slap_listeners = NULL;
-
        if( !slapd_gentle_shutdown ) {
                slapd_abrupt_shutdown = 1;
                connections_shutdown();
@@ -2026,6 +2023,9 @@ slapd_daemon_task(
            ldap_pvt_thread_pool_backload(&connection_pool), 0, 0 );
        ldap_pvt_thread_pool_destroy(&connection_pool, 1);
 
+       free ( slap_listeners );
+       slap_listeners = NULL;
+
        return NULL;
 }