mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
18.26.2015 ca669ae54f86dbeea277280690584d9f591c7571
opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 *      Portions Copyright 2014-2015 ForgeRock AS
 */
@@ -440,11 +440,10 @@
        if(wildCardBitSet.cardinality() == IN4ADDRSZ)
            return true;
        for(int i=0;i <rulePrefixBytes.length; i++) {
            if(!wildCardBitSet.get(i)) {
                if((ruleAddrBytes[i] & rulePrefixBytes[i]) !=
                        (addrBytes[i] & rulePrefixBytes[i]))
                    return false;
            }
            if (!wildCardBitSet.get(i)
                && (ruleAddrBytes[i] & rulePrefixBytes[i]) !=
                    (addrBytes[i] & rulePrefixBytes[i]))
              return false;
        }
        return true;
    }