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; return NULL;
} }
if ( slapd_shutdown && si->si_ld ) { if ( slapd_shutdown ) {
ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s ); if ( si->si_ld ) {
connection_client_stop( s ); ldap_get_option( si->si_ld, LDAP_OPT_DESC, &s );
ldap_unbind( si->si_ld ); connection_client_stop( s );
si->si_ld = NULL; ldap_unbind( si->si_ld );
si->si_ld = NULL;
}
return NULL; return NULL;
} }