From: Mark Andrews Date: Thu, 23 Oct 2008 00:00:58 +0000 (+0000) Subject: 2470. [bug] Elements of the isc_radix_node_t could be incorrectly X-Git-Tag: v9.6.0b1~24 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0d444dc136a1a8df89a329d7ad43c74e1db8dfbe;p=thirdparty%2Fbind9.git 2470. [bug] Elements of the isc_radix_node_t could be incorrectly overwritten. [RE# 18719] --- diff --git a/CHANGES b/CHANGES index b026213ec15..ac6cf52f6af 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2470. [bug] Elements of the isc_radix_node_t could be incorrectly + overwritten. [RE# 18719] + 2469. [port] solaris: Work around Solaris's select() limitations. [RT #18769] diff --git a/lib/isc/radix.c b/lib/isc/radix.c index 754a9cdda41..c223e8acc9d 100644 --- a/lib/isc/radix.c +++ b/lib/isc/radix.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: radix.c,v 1.19 2008/09/26 21:12:02 each Exp $ */ +/* $Id: radix.c,v 1.20 2008/10/23 00:00:58 marka Exp $ */ /* * This source was adapted from MRT's RCS Ids: @@ -446,7 +446,7 @@ isc_radix_insert(isc_radix_tree_t *radix, isc_radix_node_t **target, radix->num_added_node = next; } if (node->node_num[1] == -1) { - node->node_num[2] = next; + node->node_num[1] = next; radix->num_added_node = next; } } else {