X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Futil.c;h=a55168a3b351272687e5969d8995cd9f1c18e224;hp=ecf5d536ca174f3c7ac18d670cd0a541db27f2e1;hb=b17296ba049d71986028ac83f0b415a021d0691c;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/imap/util.c b/imap/util.c index ecf5d53..a55168a 100644 --- a/imap/util.c +++ b/imap/util.c @@ -15,6 +15,7 @@ #include "mutt.h" #include "mx.h" /* for M_IMAP */ +#include "ascii.h" #include "url.h" #include "imap_private.h" #include "mutt_ssl.h" @@ -98,7 +99,7 @@ int imap_parse_path (const char *path, IMAP_MBOX * mx) url_parse_ciss (&url, c); if (!(url.scheme == U_IMAP || url.scheme == U_IMAPS) || - mutt_account_fromurl (&mx->account, &url) < 0) { + mutt_account_fromurl (&mx->account, &url) < 0 || !*mx->account.host) { mem_free (&c); return -1; }