diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2018-05-28 17:10:16 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2018-05-28 17:10:16 +0000 |
commit | d12f992e7159b5fcd8cb4e7d556bfed7e6040315 (patch) | |
tree | 7b5548bc65ac7dadf3d055e3a22c69c0333d5237 /usr.sbin/smtpd | |
parent | 8b9d60a1477a92a1f375d9214f4ff81721c74903 (diff) |
stop processing envelope if smarthost parsing failed
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/mta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/mta.c b/usr.sbin/smtpd/mta.c index e4157d539fe..2043102116a 100644 --- a/usr.sbin/smtpd/mta.c +++ b/usr.sbin/smtpd/mta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta.c,v 1.208 2018/05/28 11:12:12 eric Exp $ */ +/* $OpenBSD: mta.c,v 1.209 2018/05/28 17:10:15 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -673,6 +673,7 @@ mta_handle_envelope(struct envelope *evp, const char *smarthost) m_add_string(p_queue, "Cannot parse smarthost"); m_add_int(p_queue, ESC_OTHER_STATUS); m_close(p_queue); + return; } } |