Date: Wed, 8 Jan 2003 10:39:10 -0800 (PST) From: Brian Feldman <green@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 23432 for review Message-ID: <200301081839.h08IdA5B096127@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=23432 Change 23432 by green@green_laptop_2 on 2003/01/08 10:38:58 Use Hiten Pandya's fix for the sysctl bug where the kernel would crash if an empty leaf node was created. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_sysctl.c#16 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_sysctl.c#16 (text+ko) ==== @@ -557,7 +557,7 @@ if (!sysctl_sysctl_next_ls(lsp, 0, 0, next+1, len, level+1, oidpp)) return 0; - goto next; + goto emptynode; } if (oidp->oid_number < *name) @@ -586,6 +586,7 @@ return (0); next: namelen = 1; + emptynode: *len = level; } return 1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301081839.h08IdA5B096127>
