Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix sysctl again.



details:   https://anonhg.NetBSD.org/src/rev/539568f0d3f1
branches:  trunk
changeset: 760595:539568f0d3f1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 08 20:29:13 2011 +0000

description:
fix sysctl again.

diffstat:

 sys/kern/kern_verifiedexec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c3c5068ceb10 -r 539568f0d3f1 sys/kern/kern_verifiedexec.c
--- a/sys/kern/kern_verifiedexec.c      Sat Jan 08 20:13:01 2011 +0000
+++ b/sys/kern/kern_verifiedexec.c      Sat Jan 08 20:29:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_verifiedexec.c,v 1.123 2011/01/02 20:50:55 christos Exp $ */
+/*     $NetBSD: kern_verifiedexec.c,v 1.124 2011/01/08 20:29:13 christos Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.123 2011/01/02 20:50:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.124 2011/01/08 20:29:13 christos Exp $");
 
 #include "opt_veriexec.h"
 
@@ -164,7 +164,7 @@
        if (*oldlenp < len)
                return ENOMEM;
 
-       if ((error = copyout(p, oldp, len)) != 0)
+       if (oldp && (error = copyout(p, oldp, len)) != 0)
                return error;
 
        *oldlenp = len;



Home | Main Index | Thread Index | Old Index