Date: Thu, 25 Oct 2001 07:58:26 -0700 (PDT) From: Maxim Katargin <kmv@asplinux.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/31490: Panic in sysctl_sysctl_next_ls on empy node Message-ID: <200110251458.f9PEwQv35935@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 31490 >Category: kern >Synopsis: Panic in sysctl_sysctl_next_ls on empy node >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 25 08:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Maxim Katargin >Release: 4.4 >Organization: >Environment: FreeBSD walder.asplinux.ru 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Mon Sep 17 13:29:51 MSD 2001 root@walder.asplinux.ru:/usr/obj/ext/release-4.4/src/sys/WALDER i386 >Description: Panic in sysctl_sysctl_next_ls on empy node. >How-To-Repeat: >Fix: Index: kern/kern_sysctl.c =================================================================== RCS file: /ext/vcvs/src/sys/kern/kern_sysctl.c,v retrieving revision 1.92.2.5 diff -u -r1.92.2.5 kern_sysctl.c --- kern/kern_sysctl.c 2001/06/18 23:48:13 1.92.2.5 +++ kern/kern_sysctl.c 2001/10/25 14:54:42 @@ -528,7 +528,9 @@ int *next, int *len, int level, struct sysctl_oid **oidpp) { struct sysctl_oid *oidp; + int isnamelen; + isnamelen = namelen ? 1 : 0 *len = level; SLIST_FOREACH(oidp, lsp, oid_link) { *next = oidp->oid_number; @@ -572,7 +574,7 @@ len, level+1, oidpp)) return (0); next: - namelen = 1; + namelen = isnamelen; *len = level; } return 1; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110251458.f9PEwQv35935>