From: Ondřej Kuzník Date: Mon, 13 Sep 2021 10:28:20 +0000 (+0100) Subject: ITS#9282 Short-circuit cookie comparison in non-present check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da610c050cb7b054512bfe8469a68ded0f8506e0;p=thirdparty%2Fopenldap.git ITS#9282 Short-circuit cookie comparison in non-present check --- 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; } } }