Skip to content
Snippets Groups Projects
Commit 505d9668 authored by Steve Holme's avatar Steve Holme
Browse files

imap: Don't call imap_atom() when no mailbox specified in LIST command

parent 748ffc77
No related branches found
No related tags found
No related merge requests found
......@@ -653,8 +653,8 @@ static CURLcode imap_perform_list(struct connectdata *conn)
result = imap_sendf(conn, "%s%s", imap->custom,
imap->custom_params ? imap->custom_params : "");
else {
/* Make sure the mailbox is in the correct atom format */
mailbox = imap_atom(imap->mailbox ? imap->mailbox : "");
/* Make sure the mailbox is in the correct atom format if necessary */
mailbox = imap->mailbox ? imap_atom(imap->mailbox) : "";
if(!mailbox)
return CURLE_OUT_OF_MEMORY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment