]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10379 Use a fresh timestamp for internal mod
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 8 Oct 2025 16:11:09 +0000 (17:11 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 21 Oct 2025 03:15:43 +0000 (03:15 +0000)
servers/slapd/overlays/otp.c

index aa57111aa48ccc220c8311748c0f6139a69e5755..e2ffab03e8f543004385fb5273fe2e862d44a80d 100644 (file)
@@ -966,6 +966,9 @@ otp_check_and_update( Operation *op, BerValue *totpdn, BerValue *hotpdn,
                op2.o_req_ndn = ndn;
                op2.o_opid = -1;
 
+               slap_op_time( &op2.o_time, &op2.o_tincr );
+               BER_BVZERO( &op2.o_csn );
+
                rc = op2.o_bd->be_modify( &op2, &rs2 );
                if ( rs2.sr_err != LDAP_SUCCESS ) {
                        rc = LDAP_OTHER;