diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2015-10-01 07:47:44 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2015-10-01 07:47:44 +0000 |
commit | ff14d03521a89636be959e65a21374951fe699ba (patch) | |
tree | f50c4271d12b6939db067758ade30df93a038a91 /lib/dns/rpz.c | |
parent | b04f5d3d3ff49c604e768add0cf35600b9eee074 (diff) |
Notes
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) { |