From 5d1ed85318c761112d54ea12c40fc87823e2298f Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 22 Aug 2019 15:36:45 +0000 Subject: [PATCH] Fix segfault in bounce Fixes #1735 --- smtp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smtp.c b/smtp.c index 5ce8a6fd0..0fc805d3f 100644 --- a/smtp.c +++ b/smtp.c @@ -303,6 +303,11 @@ static bool address_uses_unicode(const char *a) */ static bool addresses_use_unicode(const struct AddressList *al) { + if (!al) + { + return false; + } + struct Address *a = NULL; TAILQ_FOREACH(a, al, entries) { -- 2.40.0