From ad09a769cd3fa8c867164af129affbf2922db63f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 23 Nov 2003 20:17:15 +0000 Subject: Check correct array index KERN_VNODE; from Alistair Kerr Closes PR 3571 as per on icb. --- sys/kern/kern_sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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: -- cgit v1.2.3