From 4b62f3b8d213d81014770021b3aa054ddb8bb23d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 13 Jul 2020 13:55:40 +0100 Subject: [PATCH] ITS#8645 Check for all syncrepl errors --- servers/slapd/syncrepl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3