]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#3842 fix from jtownsend@opendarwin.org
authorHoward Chu <hyc@openldap.org>
Thu, 7 Jul 2005 04:23:47 +0000 (04:23 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 7 Jul 2005 04:23:47 +0000 (04:23 +0000)
servers/slapd/daemon.c

index 12c3c4b490e4c444c16a554453138f68c8a2120b..7a129673f5fb9674be49dda4f6849df88418d135 100644 (file)
@@ -1987,9 +1987,6 @@ slapd_daemon_task(
                close_listeners ( 0 );
        }
 
-       free ( slap_listeners );
-       slap_listeners = NULL;
-
        if( !slapd_gentle_shutdown ) {
                slapd_abrupt_shutdown = 1;
                connections_shutdown();
@@ -2006,6 +2003,9 @@ slapd_daemon_task(
 #endif
        ldap_pvt_thread_pool_destroy(&connection_pool, 1);
 
+       free ( slap_listeners );
+       slap_listeners = NULL;
+
        return NULL;
 }