Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 need explicit copyout(), apparently



details:   https://anonhg.NetBSD.org/src/rev/3f7278d97385
branches:  trunk
changeset: 535443:3f7278d97385
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Aug 19 06:50:22 2002 +0000

description:
need explicit copyout(), apparently

diffstat:

 sys/netinet6/nd6.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 7115060f19dc -r 3f7278d97385 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Mon Aug 19 03:52:53 2002 +0000
+++ b/sys/netinet6/nd6.c        Mon Aug 19 06:50:22 2002 +0000
@@ -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 @@
        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:



Home | Main Index | Thread Index | Old Index