diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-23 15:36:41 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-23 15:36:41 +0000 |
commit | 8d86cdeff32ef0eb28259e5ac75e621d1197d2fe (patch) | |
tree | 0ad718bc909e2c03c093661b421f8e5d4821f332 /usr.sbin/rtadvd | |
parent | ca143c4fbae28b3b8b33dd2caf5628b90d8df400 (diff) |
make sure to initialize prefix information data before use. sync with kame
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r-- | usr.sbin/rtadvd/config.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 24c1f88eb3c..1ad74776141 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -1,5 +1,5 @@ -/* $OpenBSD: config.c,v 1.9 2001/01/21 15:11:18 itojun Exp $ */ -/* $KAME: config.c,v 1.27 2001/01/19 03:07:18 itojun Exp $ */ +/* $OpenBSD: config.c,v 1.10 2001/01/23 15:36:40 itojun Exp $ */ +/* $KAME: config.c,v 1.29 2001/01/23 14:13:08 jinmei Exp $ */ /* * Copyright (C) 1998 WIDE Project. @@ -292,6 +292,8 @@ getconfig(intface) __FUNCTION__); exit(1); } + memset(pfx, 0, sizeof(*pfx)); + /* link into chain */ insque(pfx, &tmp->prefix); @@ -323,8 +325,7 @@ getconfig(intface) pfx->onlinkflg = val & ND_OPT_PI_FLAG_ONLINK; pfx->autoconfflg = val & ND_OPT_PI_FLAG_AUTO; #ifdef MIP6 - if (mobileip6) - pfx->routeraddr = val & ND_OPT_PI_FLAG_RTADDR; + pfx->routeraddr = val & ND_OPT_PI_FLAG_RTADDR; #endif makeentry(entbuf, i, "vltime", added); |