ITS#8645 Check for all syncrepl errors

This commit is contained in:
Ondřej Kuzník 2020-07-13 13:55:40 +01:00 committed by Quanah Gibson-Mount
parent 3716245fec
commit 4b62f3b8d2

View file

@ -6513,7 +6513,7 @@ add_syncrepl(
/* Use main slapd defaults */
bindconf_tls_defaults( &si->si_bindconf );
#endif
if ( rc < 0 ) {
if ( rc != 0 ) {
Debug( LDAP_DEBUG_ANY, "failed to add syncinfo\n" );
syncinfo_free( si, 0 );
return 1;