]> git.sur5r.net Git - openldap/commitdiff
ITS#8146 tweak prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 18 May 2015 17:06:58 +0000 (18:06 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 27 May 2015 19:06:22 +0000 (14:06 -0500)
Test less likely condition first

servers/slapd/back-mdb/filterindex.c

index a0fd41b07b343a88666d70fd68c25625c8219877..162dba9ae2ea81614c57c0222ad078c3ebe655e0 100644 (file)
@@ -211,7 +211,7 @@ mdb_filter_candidates(
                /* Must not return NULL, otherwise extended filters break */
                MDB_IDL_ALL( ids );
        }
-       if ( MDB_IDL_IS_RANGE( ids ) && ids[2] == NOID ) {
+       if ( ids[2] == NOID && MDB_IDL_IS_RANGE( ids )) {
                struct mdb_info *mdb = (struct mdb_info *) op->o_bd->be_private;
                ID last;