]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r299591
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:41:26 +0000 (06:41 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 20 May 2016 06:41:26 +0000 (06:41 +0000)
commit13816034d2760ff68eb5931406ecd2b139189eec
treebd3c8e8694a8bd31cbc323e7e6a4092235adb76a
parentc3e22332aabc362685c2855b4303a59a3b96570f
MFC r299591

Always return either a dynamically allocated string or NULL from
expand().  Never return the name parameter, which could be a the buf[]
buffer which is allocated on the stack by getdeadletter() and which
would then be used after getdeadletter() has returned.

Reported by: Coverity
CID: 1199383

git-svn-id: svn://svn.freebsd.org/base/stable/10@300274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/mail/fio.c