From 9d31ac12b757b6d2e0faedd896f73fb1dab0b96c Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Fri, 27 Oct 2000 20:50:14 +0000 Subject: [PATCH] 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 --- sys/net/radix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/radix.c b/sys/net/radix.c index e5bc9351592..442788c678d 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;