From: Howard Chu Date: Fri, 18 Feb 2022 22:46:52 +0000 (+0000) Subject: ITS#9801 syncrepl/dsee init punlock X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4996d42277aad8ff49c88e14d6e7f5d589c9a5c9;p=thirdparty%2Fopenldap.git ITS#9801 syncrepl/dsee init punlock --- 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 ) {