From: Ondřej Kuzník Date: Mon, 13 Jul 2020 12:55:40 +0000 (+0100) Subject: ITS#8645 Check for all syncrepl errors X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~24^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b62f3b8d213d81014770021b3aa054ddb8bb23d;p=thirdparty%2Fopenldap.git ITS#8645 Check for all syncrepl errors --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index a5b50ab904..a440e4a7c1 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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;