From 1167992be661869fcbb3c20133620c1f53ecd666 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Tue, 23 Jan 2001 17:29:12 +0000 Subject: [PATCH] zero-cleared allocated prefix information when configured. Obtained from: KAME --- usr.sbin/rtadvd/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index c2d3ee2ef878..ec294f1db43a 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -258,6 +258,8 @@ getconfig(intface) __FUNCTION__); exit(1); } + memset(pfx, 0, sizeof(*pfx)); + /* link into chain */ insque(pfx, &tmp->prefix);