]> 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 17:11:45 +0000 (17:11 +0000)
servers/slapd/syncrepl.c

index 0042abdf330b3eb79cc63594cd77593b3c3e13c8..7707a8945f13572836850b90149efd284b4aa857 100644 (file)
@@ -1378,6 +1378,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) {
@@ -1465,7 +1466,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 ) {