diff options
author | Brendan Cully <brendan@kublai.com> | 2007-02-07 17:08:51 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2007-02-07 17:08:51 +0000 |
commit | bc1c2602ef0d125ea775adb013c876b226d096d2 (patch) | |
tree | 4177d4d8971880644b5e27d11b99073cf8efb0c7 /imap | |
parent | d1b4bf65e8aa45a1f814ad76d93ee24bfccfc4aa (diff) |
Sanity-check mailbox name in imap_subscribe. (Closes: #2746)
Diffstat (limited to 'imap')
-rw-r--r-- | imap/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/imap.c b/imap/imap.c index 03ca2114..5a77f2f9 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -1732,7 +1732,7 @@ int imap_subscribe (char *path, int subscribe) BUFFER err, token; IMAP_MBOX mx; - if (!mx_is_imap (path) || imap_parse_path (path, &mx)) + if (!mx_is_imap (path) || imap_parse_path (path, &mx) || !mx.mbox) { mutt_error (_("Bad mailbox name")); return -1; |