diff options
author | ume <ume@FreeBSD.org> | 2001-01-23 17:29:12 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-01-23 17:29:12 +0000 |
commit | b20ff502723bbbabd299b65adc64a9d4f99e0f66 (patch) | |
tree | 7d74a7fc1ca58984cafd25d993c8ebcc73f05d87 /usr.sbin/rtadvd | |
parent | b4e8c12b24cd52efc0cafd80f2d8a7a4718087f7 (diff) | |
download | FreeBSD-src-b20ff502723bbbabd299b65adc64a9d4f99e0f66.zip FreeBSD-src-b20ff502723bbbabd299b65adc64a9d4f99e0f66.tar.gz |
zero-cleared allocated prefix information when configured.
Obtained from: KAME
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r-- | usr.sbin/rtadvd/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |