]> granicus.if.org Git - neomutt/commitdiff
Fix segfault in bounce
authorPietro Cerutti <gahr@gahr.ch>
Thu, 22 Aug 2019 15:36:45 +0000 (15:36 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 22 Aug 2019 16:47:59 +0000 (17:47 +0100)
Fixes #1735

smtp.c

diff --git a/smtp.c b/smtp.c
index 5ce8a6fd0b1e6f45c9c80262f118def8850b0dc2..0fc805d3f912e8d4b11e4fc14184c22c724d757c 100644 (file)
--- 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)
   {