Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/sysctl Fix possible segmentation fault when retrieving ...
details: https://anonhg.NetBSD.org/src/rev/fe9db74c4b31
branches: trunk
changeset: 579629:fe9db74c4b31
user: atatat <atatat%NetBSD.org@localhost>
date: Sat Mar 19 23:19:17 2005 +0000
description:
Fix possible segmentation fault when retrieving descriptions. Thought
I committed this a while ago. I guess the fact that no one filed a pr
meant no one else found it. :)
diffstat:
sbin/sysctl/sysctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0b082570962d -r fe9db74c4b31 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c Sat Mar 19 23:16:55 2005 +0000
+++ b/sbin/sysctl/sysctl.c Sat Mar 19 23:19:17 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.c,v 1.98 2005/03/18 04:52:24 atatat Exp $ */
+/* $NetBSD: sysctl.c,v 1.99 2005/03/19 23:19:17 atatat Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: sysctl.c,v 1.98 2005/03/18 04:52:24 atatat Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.99 2005/03/19 23:19:17 atatat Exp $");
#endif
#endif /* not lint */
@@ -1502,7 +1502,7 @@
for (p = d; p < plim; p = NEXT_DESCR(p))
if (node->sysctl_num == p->descr_num)
break;
- if (p < plim && node[i].sysctl_ver == p->descr_ver) {
+ if (p < plim && node->sysctl_ver == p->descr_ver) {
/*
* match found, attempt to attach description
*/
Home |
Main Index |
Thread Index |
Old Index