From 4996d42277aad8ff49c88e14d6e7f5d589c9a5c9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Feb 2022 22:46:52 +0000 Subject: [PATCH] ITS#9801 syncrepl/dsee init punlock --- 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 0042abdf33..7707a8945f 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 ) { -- 2.47.3