]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9282 Short-circuit cookie comparison in non-present check
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 13 Sep 2021 10:28:20 +0000 (11:28 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 Dec 2021 16:40:47 +0000 (16:40 +0000)
servers/slapd/syncrepl.c

index 59f49d3e88e0f5fbfa9028fd2162a850f8980d8a..5e491e690e3b923b47dbc5d9c5641bb7a7af51a0 100644 (file)
@@ -5661,6 +5661,7 @@ nonpresent_callback(
                                                if ( syncCookie->sids[i] == sid &&
                                                                ber_bvcmp( &a->a_nvals[0], &syncCookie->ctxcsn[i] ) <= 0 ) {
                                                        covered = 1;
+                                                       break;
                                                }
                                        }
                                }