diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-19 06:45:01 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-08-19 06:45:01 +0000 |
commit | f1fde8aafd7e5288a289debfd122e61289938e6b (patch) | |
tree | 05d8e55caa5f7d1dabf94023ca23333d763581a4 | |
parent | a28c06114c283774ea072fc26f1b36b36b9a52ca (diff) |
need explicit copyout().
-rw-r--r-- | sys/netinet6/nd6.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 9fce82f5a39..abaeed0c4d8 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.51 2002/06/14 21:35:00 todd Exp $ */ +/* $OpenBSD: nd6.c,v 1.52 2002/08/19 06:45:00 itojun Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -1985,10 +1985,14 @@ nd6_sysctl(name, oldp, oldlenp, newp, newlen) switch (name) { case ICMPV6CTL_ND6_DRLIST: error = fill_drlist(oldp, oldlenp, ol); + if (!error) + copyout(oldp, oldp, *oldlenp); break; case ICMPV6CTL_ND6_PRLIST: error = fill_prlist(oldp, oldlenp, ol); + if (!error) + copyout(oldp, oldp, *oldlenp); break; default: |