]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8645 Check for all syncrepl errors
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 13 Jul 2020 12:55:40 +0000 (13:55 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 22 Jul 2020 20:22:50 +0000 (20:22 +0000)
servers/slapd/syncrepl.c

index a5b50ab904b8dcf948653871607f50fb57b07621..a440e4a7c1ce6021dbda4c50cc93ea80c6e62d6b 100644 (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;