From da610c050cb7b054512bfe8469a68ded0f8506e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 13 Sep 2021 11:28:20 +0100 Subject: [PATCH] ITS#9282 Short-circuit cookie comparison in non-present check --- servers/slapd/syncrepl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 3565961c35..68e2e66236 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -5695,6 +5695,7 @@ nonpresent_callback( if ( syncCookie->sids[i] == sid && ber_bvcmp( &a->a_nvals[0], &syncCookie->ctxcsn[i] ) <= 0 ) { covered = 1; + break; } } }