diff options
Diffstat (limited to 'lib/dns/rpz.c')
-rw-r--r-- | lib/dns/rpz.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/dns/rpz.c b/lib/dns/rpz.c index 3dd80664c7dc..dc8c2c920443 100644 --- a/lib/dns/rpz.c +++ b/lib/dns/rpz.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2014 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,9 +14,6 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id$ */ - - /*! \file */ #include <config.h> @@ -741,13 +738,14 @@ diff_keys(const dns_rpz_cidr_key_t *key1, dns_rpz_cidr_bits_t bits1, dns_rpz_cidr_bits_t maxbit, bit; int i; + bit = 0; maxbit = ISC_MIN(bits1, bits2); /* * find the first differing words */ - for (i = 0, bit = 0; - bit <= maxbit; + for (i = 0; + bit < maxbit; i++, bit += DNS_RPZ_CIDR_WORD_BITS) { delta = key1->w[i] ^ key2->w[i]; if (delta != 0) { |