summaryrefslogtreecommitdiffstats
path: root/sys/net/radix.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2000-10-27 20:50:14 +0000
committerwollman <wollman@FreeBSD.org>2000-10-27 20:50:14 +0000
commite5bd9f160df3d57dbd216f6a87dc6cef0b4dce49 (patch)
tree580fe92653df0d4556ec2308ddd615f96345ea63 /sys/net/radix.c
parent9f3c59b4fcea8339d0b4ab5708f1f9a965bfe932 (diff)
downloadFreeBSD-src-e5bd9f160df3d57dbd216f6a87dc6cef0b4dce49.zip
FreeBSD-src-e5bd9f160df3d57dbd216f6a87dc6cef0b4dce49.tar.gz
Initialize rn_mklist in rn_newpair(). The undocumented assumption
seems to be that the nodes are bzero'd beforehand, but the submitter found that this was not always the case, and in any event defensive programming here costs epsilon squared. PR: 22244 Submitted by: Dave Gillam <daveg@chiaro.com>
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r--sys/net/radix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index e5bc935..442788c 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -344,6 +344,7 @@ rn_newpair(v, b, nodes)
tt->rn_key = (caddr_t)v;
tt->rn_parent = t;
tt->rn_flags = t->rn_flags = RNF_ACTIVE;
+ tt->rn_mklist = t->rn_mklist = 0;
#ifdef RN_DEBUG
tt->rn_info = rn_nodenum++; t->rn_info = rn_nodenum++;
tt->rn_twin = t;
OpenPOWER on IntegriCloud