mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
3998. [bug] isc_radix_search was returning matches that were
to precise. [RT #37680]
This commit is contained in:
@@ -280,6 +280,9 @@ isc_radix_search(isc_radix_tree_t *radix, isc_radix_node_t **target,
|
||||
while (cnt-- > 0) {
|
||||
node = stack[cnt];
|
||||
|
||||
if (prefix->bitlen < node->bit)
|
||||
continue;
|
||||
|
||||
if (_comp_with_mask(isc_prefix_tochar(node->prefix),
|
||||
isc_prefix_tochar(prefix),
|
||||
node->prefix->bitlen))
|
||||
|
Reference in New Issue
Block a user