Mercurial > dovecot > core-2.2
changeset 22918:6ca30380a3f5
lib-lda: mail_send_rejection() - Don't assert-crash with empty input mail
Fixes: Panic: file mail-send.c: line 176 (mail_send_rejection): assertion failed: (ret != 0)
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 25 Apr 2018 17:45:39 +0300 |
parents | 827eab50e33a |
children | 2b16e07f8312 |
files | src/lib-lda/mail-send.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-lda/mail-send.c Wed Feb 28 14:22:44 2018 +0200 +++ b/src/lib-lda/mail-send.c Wed Apr 25 17:45:39 2018 +0300 @@ -170,10 +170,8 @@ N_ELEMENTS(exclude_headers), *null_header_filter_callback, (void *)NULL); - ret = o_stream_send_istream(output, input); + (void)o_stream_send_istream(output, input); i_stream_unref(&input); - - i_assert(ret != 0); } str_truncate(str, 0);