From 4e8fd5049299fe3b75ec37d853cd4492004f07a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Thu, 9 Jul 2026 12:51:30 +0100 Subject: [PATCH] ITS#10535 syncprov: Let syncprov_play_accesslog handle !changed && dirty --- servers/slapd/overlays/syncprov.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 81b09cb363..65461152c4 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 );