Re: smtpd: handle buf == NULL from m_get_string

2020-03-16 Thread Todd C . Miller
On Tue, 17 Mar 2020 00:16:27 +0100, Tobias Heider wrote: > m_get_string(m, &buf) may set 'buf == NULL', which would lead > to strlen(NULL) in m_get_envelope. > > I chose fatalx because that's what seems to be the common way to handle > errors in mproc but I don't know the code base to well. Sure

smtpd: handle buf == NULL from m_get_string

2020-03-16 Thread Tobias Heider
m_get_string(m, &buf) may set 'buf == NULL', which would lead to strlen(NULL) in m_get_envelope. I chose fatalx because that's what seems to be the common way to handle errors in mproc but I don't know the code base to well. Index: mproc.c