From: Thomas Roessler Date: Mon, 31 Oct 2005 10:51:54 +0000 (+0000) Subject: Fix the underlying problem behind mutt/2107. X-Git-Tag: mutt-1-5-12-rel~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40cf8e65b6164c937dd86b7c4993153aeec3c5e1;p=mutt Fix the underlying problem behind mutt/2107. --- diff --git a/mutt_idna.c b/mutt_idna.c index c2db3257..36915a45 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -132,7 +132,7 @@ static int mbox_to_udomain (const char *mbx, char **user, char **domain) *domain = NULL; p = strchr (mbx, '@'); - if (!p) + if (!p || !p[1]) return -1; *user = safe_calloc((p - mbx + 1), sizeof(mbx[0])); strfcpy (*user, mbx, (p - mbx + 1));