]> 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:38:23 +0000 (16:38 +0000)
servers/slapd/syncrepl.c

index 3565961c356e0e85d73625f585b40be1b478bdce..68e2e6623695d3d13fe004322fb29a542f06d2d6 100644 (file)
@@ -5695,6 +5695,7 @@ nonpresent_callback(
                                                if ( syncCookie->sids[i] == sid &&
                                                                ber_bvcmp( &a->a_nvals[0], &syncCookie->ctxcsn[i] ) <= 0 ) {
                                                        covered = 1;
+                                                       break;
                                                }
                                        }
                                }