diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 52281b13abe0..b748b9c63a7e 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1,4 +1,4 @@ -/* $NetBSD: nd6.c,v 1.66 2002/06/09 14:43:13 itojun Exp $ */ +/* $NetBSD: nd6.c,v 1.67 2002/08/19 06:50:22 itojun Exp $ */ /* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */ /* @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.66 2002/06/09 14:43:13 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.67 2002/08/19 06:50:22 itojun Exp $"); #include #include @@ -1968,10 +1968,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: