mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
[9.20] chg: nil: Fix INSIST copy-paste error checking RADIX_V4 instead of RADIX_V6
The INSIST in isc_radix_insert() checks node->data[RADIX_V4] and node->node_num[RADIX_V4] twice due to a copy-paste error, never verifying the RADIX_V6 fields. Fix the second pair to check RADIX_V6. Backport of MR !11664 Merge branch 'backport-ondrej/fix-copy-paste-error-checking-RADIX_V4-instead-of-RADIX_V6-9.20' into 'bind-9.20' See merge request isc-projects/bind9!11686
This commit is contained in:
commit
85ecb978f1
1 changed files with 2 additions and 2 deletions
|
|
@ -458,8 +458,8 @@ isc_radix_insert(isc_radix_tree_t *radix, isc_radix_node_t **target,
|
|||
}
|
||||
INSIST(node->data[RADIX_V4] == NULL &&
|
||||
node->node_num[RADIX_V4] == -1 &&
|
||||
node->data[RADIX_V4] == NULL &&
|
||||
node->node_num[RADIX_V4] == -1);
|
||||
node->data[RADIX_V6] == NULL &&
|
||||
node->node_num[RADIX_V6] == -1);
|
||||
if (source != NULL) {
|
||||
/* Merging node */
|
||||
for (i = 0; i < RADIX_FAMILIES; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue