mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3842 from jtownsend@opendarwin.org - don't free slap_listeners until
after connection_shutdown().
This commit is contained in:
parent
11a1349366
commit
00dae75f7b
@ -2013,9 +2013,6 @@ slapd_daemon_task(
|
|||||||
close_listeners ( 0 );
|
close_listeners ( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
free ( slap_listeners );
|
|
||||||
slap_listeners = NULL;
|
|
||||||
|
|
||||||
if( !slapd_gentle_shutdown ) {
|
if( !slapd_gentle_shutdown ) {
|
||||||
slapd_abrupt_shutdown = 1;
|
slapd_abrupt_shutdown = 1;
|
||||||
connections_shutdown();
|
connections_shutdown();
|
||||||
@ -2026,6 +2023,9 @@ slapd_daemon_task(
|
|||||||
ldap_pvt_thread_pool_backload(&connection_pool), 0, 0 );
|
ldap_pvt_thread_pool_backload(&connection_pool), 0, 0 );
|
||||||
ldap_pvt_thread_pool_destroy(&connection_pool, 1);
|
ldap_pvt_thread_pool_destroy(&connection_pool, 1);
|
||||||
|
|
||||||
|
free ( slap_listeners );
|
||||||
|
slap_listeners = NULL;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user