Commit 8d4281d8 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3443 fix shutdown test

parent 5162c447
......@@ -912,11 +912,13 @@ do_syncrepl(
return NULL;
}
if ( slapd_shutdown && si->si_ld ) {
ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s );
connection_client_stop( s );
ldap_unbind( si->si_ld );
si->si_ld = NULL;
if ( slapd_shutdown ) {
if ( si->si_ld ) {
ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s );
connection_client_stop( s );
ldap_unbind( si->si_ld );
si->si_ld = NULL;
}
return NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment