Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 check error from copyout



details:   https://anonhg.NetBSD.org/src/rev/bc79e82c6ab9
branches:  trunk
changeset: 535467:bc79e82c6ab9
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Aug 19 23:23:22 2002 +0000

description:
check error from copyout

diffstat:

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

diffs (34 lines):

diff -r 4792b624e758 -r bc79e82c6ab9 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Mon Aug 19 23:21:11 2002 +0000
+++ b/sys/netinet6/nd6.c        Mon Aug 19 23:23:22 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.c,v 1.70 2002/08/19 23:21:11 itojun Exp $  */
+/*     $NetBSD: nd6.c,v 1.71 2002/08/19 23:23: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.70 2002/08/19 23:21:11 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.71 2002/08/19 23:23:22 itojun Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1976,13 +1976,13 @@
        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:



Home | Main Index | Thread Index | Old Index