]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9801 syncrepl/dsee init punlock
authorHoward Chu <hyc@openldap.org>
Fri, 18 Feb 2022 22:46:52 +0000 (22:46 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Feb 2022 20:01:56 +0000 (20:01 +0000)
servers/slapd/syncrepl.c

index baa669601e79ed12a078b2146b1698c3b039b076..6ed55801778f21b3d77fd6b9d117eefa48a62e31 100644 (file)
@@ -1376,6 +1376,7 @@ do_syncrep2(
                                break;
                        }
 #endif
+                       punlock = -1;
                        ldap_get_entry_controls( si->si_ld, msg, &rctrls );
                        ldap_get_dn_ber( si->si_ld, msg, NULL, &bdn );
                        if (!bdn.bv_len) {
@@ -1463,7 +1464,6 @@ do_syncrep2(
                                rc = -1;
                                goto done;
                        }
-                       punlock = -1;
                        if ( ber_peek_tag( ber, &len ) == LDAP_TAG_SYNC_COOKIE ) {
                                if ( ber_scanf( ber, /*"{"*/ "m}", &cookie ) != LBER_ERROR ) {