PERFORCE change 23432 for review

Brian Feldman green at freebsd.org
Wed Jan 8 18:39:10 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=23432

Change 23432 by green at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list