diff options
author | jhb <jhb@FreeBSD.org> | 2011-08-18 22:20:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-08-18 22:20:45 +0000 |
commit | c902e656105666eb86ca08b9d534253d3f831d46 (patch) | |
tree | a8ee9be64f5c495066e35ec20358a668de26cc4a /sys/kern/init_main.c | |
parent | 5384a68fd98b9d2c320112b1cc352611abe8a1df (diff) | |
download | FreeBSD-src-c902e656105666eb86ca08b9d534253d3f831d46.zip FreeBSD-src-c902e656105666eb86ca08b9d534253d3f831d46.tar.gz |
One of the general principles of the sysctl(3) API is that a user can
query the needed size for a sysctl result by passing in a NULL old
pointer and a valid oldsize. The kern.proc.args sysctl handler broke
this assumption by not calling SYSCTL_OUT() if the old pointer was
NULL.
Approved by: re (kib)
MFC after: 3 days
Diffstat (limited to 'sys/kern/init_main.c')
0 files changed, 0 insertions, 0 deletions