Fix a potential NULL dereference in the unpriv child expanding %{mda}.
authormillert <millert@openbsd.org>
Sun, 19 Mar 2023 01:43:11 +0000 (01:43 +0000)
committermillert <millert@openbsd.org>
Sun, 19 Mar 2023 01:43:11 +0000 (01:43 +0000)
commit1750b2485245729867353d98b376ca12415da42b
tree3abadf1c88db9edc479950b227fc9311d947915b
parentc375b44510adb19ba11e588a35b807c072be3987
Fix a potential NULL dereference in the unpriv child expanding %{mda}.
It is not legal to use %{mda} in anything but an mda wrapper.
mda_expand_token() will now return an error when %{mda} is used and
mda_command is NULL.  OK op@
usr.sbin/smtpd/mda_variables.c