2
0
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:
Mark Andrews
2014-11-04 12:34:12 +11:00
parent 257d7508c8
commit b976c39c07
5 changed files with 109 additions and 4 deletions

View File

@@ -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))