]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/rules: fix a bug in subnet computations
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Jun 2024 13:05:54 +0000 (15:05 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 22 Jul 2024 11:03:40 +0000 (13:03 +0200)
commit062eafbd4f02275e4191b71ee5dd748c37764ef2
tree0efe3cbf4b02edd0b58aa4da5f2d6f42c1c1105c
parent0432278dbfd5f9ef5892f8ddcdce1d61f2b8676e
lib/rules: fix a bug in subnet computations

The problem mainly affected subnets not aligned on whole bytes,
but maybe also others.  Reported:
https://lists.nic.cz/hyperkitty/list/knot-resolver-users@lists.nic.cz/message/6P2JPK72WMVLP45TDV42DTACEA2N5NW2/

I'm really sorry about this; no idea why I thought that the simple
multiplication would suffice.
lib/rules/api.c