diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2008-05-22 15:27:32 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2008-05-22 15:27:32 +0000 |
| commit | 2b7cae2549a332422fa1ce7f8ae6f26ebbf55071 (patch) | |
| tree | d9acad0efbc3bd24f0554e83f7308e1c383bd4f7 /bind-9.5-initialize.patch | |
| parent | 2de2c4b95bede4502a43ec8e2404169f4c7f9eed (diff) | |
- 9.5.0rc1 releasebind-9_5_0-27_rc1_fc8
- initialize memory in ACL code correctly (#446848)
Diffstat (limited to 'bind-9.5-initialize.patch')
| -rw-r--r-- | bind-9.5-initialize.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bind-9.5-initialize.patch b/bind-9.5-initialize.patch new file mode 100644 index 0000000..39101ff --- /dev/null +++ b/bind-9.5-initialize.patch @@ -0,0 +1,19 @@ +diff -up bind-9.5.0rc1/lib/isc/radix.c.init bind-9.5.0rc1/lib/isc/radix.c +--- bind-9.5.0rc1/lib/isc/radix.c.init 2008-05-22 17:11:59.000000000 +0200 ++++ bind-9.5.0rc1/lib/isc/radix.c 2008-05-22 17:12:43.000000000 +0200 +@@ -323,6 +323,7 @@ isc_radix_insert(isc_radix_tree_t *radix + if (node == NULL) + return (ISC_R_NOMEMORY); + node->bit = bitlen; ++ node->node_num[0] = node->node_num[1] = -1; + result = _ref_prefix(radix->mctx, &node->prefix, prefix); + if (result != ISC_R_SUCCESS) { + isc_mem_put(radix->mctx, node, +@@ -351,7 +352,6 @@ isc_radix_insert(isc_radix_tree_t *radix + } else { + node->node_num[ISC_IS6(family)] = + ++radix->num_added_node; +- node->node_num[!ISC_IS6(family)] = -1; + node->data[0] = NULL; + node->data[1] = NULL; + } |
