mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
"blackhole" ACLs could cause named to segfault due to some
uninitialized memory. [rt18095]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
2374. [bug] "blackhole" ACLs could cause named to segfault due
|
||||||
|
to some uninitialized memory. [RT #18095]
|
||||||
|
|
||||||
2373. [bug] Default values of zone ACLs were re-parsed each time a
|
2373. [bug] Default values of zone ACLs were re-parsed each time a
|
||||||
new zone was configured, causing an overconsumption
|
new zone was configured, causing an overconsumption
|
||||||
of memory. [RT #18092]
|
of memory. [RT #18092]
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: radix.c,v 1.13 2008/01/27 23:47:20 tbox Exp $ */
|
/* $Id: radix.c,v 1.14 2008/05/21 23:21:33 each Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This source was adapted from MRT's RCS Ids:
|
* This source was adapted from MRT's RCS Ids:
|
||||||
@@ -323,6 +323,7 @@ isc_radix_insert(isc_radix_tree_t *radix, isc_radix_node_t **target,
|
|||||||
if (node == NULL)
|
if (node == NULL)
|
||||||
return (ISC_R_NOMEMORY);
|
return (ISC_R_NOMEMORY);
|
||||||
node->bit = bitlen;
|
node->bit = bitlen;
|
||||||
|
node->node_num[0] = node->node_num[1] = -1;
|
||||||
result = _ref_prefix(radix->mctx, &node->prefix, prefix);
|
result = _ref_prefix(radix->mctx, &node->prefix, prefix);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
isc_mem_put(radix->mctx, node,
|
isc_mem_put(radix->mctx, node,
|
||||||
@@ -351,7 +352,6 @@ isc_radix_insert(isc_radix_tree_t *radix, isc_radix_node_t **target,
|
|||||||
} else {
|
} else {
|
||||||
node->node_num[ISC_IS6(family)] =
|
node->node_num[ISC_IS6(family)] =
|
||||||
++radix->num_added_node;
|
++radix->num_added_node;
|
||||||
node->node_num[!ISC_IS6(family)] = -1;
|
|
||||||
node->data[0] = NULL;
|
node->data[0] = NULL;
|
||||||
node->data[1] = NULL;
|
node->data[1] = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user