diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:25:00 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:25:00 +0000 |
commit | 65ad04741171e45c64ba4bc306cb92b68f836698 (patch) | |
tree | 1fd4f9fb4e1d287f7a9e4eb14b556f029e836053 /sys/netinet6 | |
parent | 623454a1387a6aae104933bff0a0201bfe7d2bf0 (diff) |
handle error from copyout
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 5c8acb1131b..ee66e24b077 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6.c,v 1.54 2002/08/19 23:23:39 itojun Exp $ */ +/* $OpenBSD: nd6.c,v 1.55 2002/09/04 07:24:59 itojun Exp $ */ /* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */ /* @@ -1993,13 +1993,13 @@ nd6_sysctl(name, oldp, oldlenp, newp, newlen) case ICMPV6CTL_ND6_DRLIST: error = fill_drlist(p, oldlenp, ol); if (!error && p && oldp) - copyout(p, oldp, *oldlenp); + error = copyout(p, oldp, *oldlenp); break; case ICMPV6CTL_ND6_PRLIST: error = fill_prlist(p, oldlenp, ol); if (!error && p && oldp) - copyout(p, oldp, *oldlenp); + error = copyout(p, oldp, *oldlenp); break; default: |