From: Richard Russon Date: Sun, 24 Sep 2017 11:18:25 +0000 (+0100) Subject: fix: crash in mbox_to_udomain X-Git-Tag: neomutt-20171006~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b762f298b638828b7ad2b9fd881043c772e699e;p=neomutt fix: crash in mbox_to_udomain Fixes #778 --- diff --git a/mutt_idna.c b/mutt_idna.c index 2923444f7..7a956fdca 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -57,6 +57,8 @@ static int mbox_to_udomain(const char *mbx, char **user, char **domain) char *p = NULL; mutt_str_replace(&buff, mbx); + if (!buff) + return -1; p = strchr(buff, '@'); if (!p || !p[1])