need explicit copyout(), apparently

This commit is contained in:
itojun 2002-08-19 06:50:22 +00:00
parent a64e475289
commit cc0fa7bc37
1 changed files with 6 additions and 2 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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: