Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern allow get the size of the request sysctls to work.
details: https://anonhg.NetBSD.org/src/rev/da451cd5e5bd
branches: trunk
changeset: 761475:da451cd5e5bd
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 29 00:38:25 2011 +0000
description:
allow get the size of the request sysctls to work.
diffstat:
sys/kern/kern_verifiedexec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8cc9f6c1e077 -r da451cd5e5bd sys/kern/kern_verifiedexec.c
--- a/sys/kern/kern_verifiedexec.c Fri Jan 28 23:54:28 2011 +0000
+++ b/sys/kern/kern_verifiedexec.c Sat Jan 29 00:38:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_verifiedexec.c,v 1.124 2011/01/08 20:29:13 christos Exp $ */
+/* $NetBSD: kern_verifiedexec.c,v 1.125 2011/01/29 00:38:25 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.124 2011/01/08 20:29:13 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.125 2011/01/29 00:38:25 christos Exp $");
#include "opt_veriexec.h"
@@ -161,7 +161,7 @@
len = strlen(p) + 1;
- if (*oldlenp < len)
+ if (*oldlenp < len && oldp)
return ENOMEM;
if (oldp && (error = copyout(p, oldp, len)) != 0)
Home |
Main Index |
Thread Index |
Old Index