]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10535 syncprov: Let syncprov_play_accesslog handle !changed && dirty 899/head
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 9 Jul 2026 11:51:30 +0000 (12:51 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 Jul 2026 15:41:28 +0000 (15:41 +0000)
servers/slapd/overlays/syncprov.c

index 81b09cb36309bd95529f6ca2601a428aec2b740c..65461152c42751d898087a890c7c6923fd852715 100644 (file)
@@ -2376,6 +2376,15 @@ syncprov_play_accesslog( Operation *op, SlapReply *rs, sync_control *srs,
                        newestcsn = ctxcsn[i];
                }
        }
+
+       if ( BER_BVISNULL( &oldestcsn ) ) {
+               /*
+                * ITS#10535 If ctxcsn covers srs->sr_state.ctxcsn, then they are equal
+                * and oldestcsn/newestcsn are not set. Also we have nothing to send
+                * either, just skip
+                */
+               return LDAP_SUCCESS;
+       }
        assert( !BER_BVISEMPTY( &oldestcsn ) && !BER_BVISEMPTY( &newestcsn ) &&
                        ber_bvcmp( &oldestcsn, &newestcsn ) < 0 );
        slap_sl_free( minsids, op->o_tmpmemctx );