diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2000-10-27 20:50:14 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2000-10-27 20:50:14 +0000 |
commit | 9d31ac12b757b6d2e0faedd896f73fb1dab0b96c (patch) | |
tree | 1c403a8a6eef61abb4703c4580c70a1a1fc4da34 /sys/net/radix.c | |
parent | a415ada7858b26f29437dfe7a0e0b70be2c3790b (diff) | |
download | src-9d31ac12b757b6d2e0faedd896f73fb1dab0b96c.tar.gz src-9d31ac12b757b6d2e0faedd896f73fb1dab0b96c.zip |
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>
Notes
Notes:
svn path=/head/; revision=67727
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r-- | sys/net/radix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c index e5bc9351592a..442788c678da 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; |