summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-11-23 20:17:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-11-23 20:17:15 +0000
commitad09a769cd3fa8c867164af129affbf2922db63f (patch)
tree512fb7d809f6e4c7eb4042a3ec2dbde494377b70 /sys/kern
parent62a56a59c9973b8966e9456df7deb5a3ec430b45 (diff)
Check correct array index KERN_VNODE; from Alistair Kerr
Closes PR 3571 as per on icb.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 0af58239e6f..59c0af8f72d 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.91 2003/10/26 22:31:23 tedu Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.92 2003/11/23 20:17:14 millert Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -150,7 +150,7 @@ sys___sysctl(p, v, retval)
switch (name[0]) {
case CTL_KERN:
fn = kern_sysctl;
- if (name[2] == KERN_VNODE) /* XXX */
+ if (name[1] == KERN_VNODE) /* XXX */
dolock = 0;
break;
case CTL_HW: