Date: Thu, 17 May 2007 15:34:51 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/geom/core geom.c Message-ID: <200705171534.l4HFYpc2087576@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2007-05-17 15:34:51 UTC FreeBSD src repository Modified files: sbin/geom/core geom.c Log: Fix the construction of the gctl_req that got broken by my previous commit and that introduced optional parameters. Existing classes (like geli(8)) use empty strings by default and expect the parameter to be passed to the kernel as such. Also, the default value of a string argument can be NULL. Fix both cases by making the optional parameter conditional upon gc_argname being set and making sure to test for NULL before dereferencing the pointer. Reported by: brueffer@ Revision Changes Path 1.30 +3 -1 src/sbin/geom/core/geom.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705171534.l4HFYpc2087576>