commit | c64b7f6a7828b74a13836aee84f5bcdc30fb374e | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Fri May 18 10:19:59 2012 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Fri May 18 10:19:59 2012 +0100 |
tree | 7269bba298e05c9a3b92e1cc96f47c8c5872cdbd | |
parent | 068b4b51e3328bf42cffd871d79523c5fe8a203e [diff] [blame] |
Fix is_same_net6 - bugged if prefix length not divisible by 8.
diff --git a/src/util.c b/src/util.c index 789bdd4..07f0338 100644 --- a/src/util.c +++ b/src/util.c
@@ -330,7 +330,7 @@ return 0; if (pfbits == 0 || - (a->s6_addr[pfbytes] >> (8 - pfbits) != b->s6_addr[pfbytes] >> (8 - pfbits))) + (a->s6_addr[pfbytes] >> (8 - pfbits) == b->s6_addr[pfbytes] >> (8 - pfbits))) return 1; return 0;