ITS#3443 fix shutdown test

This commit is contained in:
Howard Chu 2004-12-16 13:48:36 +00:00
parent 5162c4477b
commit 8d4281d843

View File

@ -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;
}