- Fix that malloc failure during edns subnet addrtree

insert is checked, so it does not crash later. Thanks to
  Qifan Zhang, Palo Alto Networks, for the report.
This commit is contained in:
W.C.A. Wijngaards
2026-06-17 15:55:33 +02:00
parent e2cc14681e
commit 8d3348c71b
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -39,6 +39,9 @@
- Fix that malloc failure for rpz_strip_nsdname is - Fix that malloc failure for rpz_strip_nsdname is
checked and handled, so that it does not crash later. checked and handled, so that it does not crash later.
Thanks to Qifan Zhang, Palo Alto Networks, for the report. Thanks to Qifan Zhang, Palo Alto Networks, for the report.
- Fix that malloc failure during edns subnet addrtree
insert is checked, so it does not crash later. Thanks to
Qifan Zhang, Palo Alto Networks, for the report.
16 June 2026: Wouter 16 June 2026: Wouter
- Fix to disallow $INCLUDE for secondary zones. Start up - Fix to disallow $INCLUDE for secondary zones. Start up
+1
View File
@@ -459,6 +459,7 @@ addrtree_insert(struct addrtree *tree, const addrkey_t *addr,
/* Data is stored in other leafnode */ /* Data is stored in other leafnode */
node = newnode; node = newnode;
newnode = node_create(tree, elem, scope, ttl); newnode = node_create(tree, elem, scope, ttl);
if (!newnode) return;
if (!edge_create(newnode, addr, sourcemask, node, if (!edge_create(newnode, addr, sourcemask, node,
index^1)) { index^1)) {
clean_node(tree, newnode); clean_node(tree, newnode);