]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In all cases except CTLTYPE_STRING, penv is NULL here, so passing it
authorDag-Erling Smørgrav <des@FreeBSD.org>
Thu, 23 Oct 2014 22:42:56 +0000 (22:42 +0000)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Thu, 23 Oct 2014 22:42:56 +0000 (22:42 +0000)
commitb0d69dfad95130a354a1273f4703434e5c971b7d
tree5c2d2655458faf2c9cee0ac891115138eb374030
parentc412a56aca2c638c88781f4daaaf9e3a1edf3edd
In all cases except CTLTYPE_STRING, penv is NULL here, so passing it
indiscriminately to printf() and freeenv() is incorrect.  Add a NULL
check before freeenv(); as for printf(), we could use req.newptr
instead, but we'd have to select the correct format string based on
the type, and that's too much work for an error message, so just
remove it.
sys/kern/kern_sysctl.c