From b20ff502723bbbabd299b65adc64a9d4f99e0f66 Mon Sep 17 00:00:00 2001 From: ume Date: Tue, 23 Jan 2001 17:29:12 +0000 Subject: zero-cleared allocated prefix information when configured. Obtained from: KAME --- usr.sbin/rtadvd/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/rtadvd') diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index c2d3ee2..ec294f1 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); -- cgit v1.1