mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
imap: Don't call imap_atom() when no mailbox specified in LIST command
This commit is contained in:
parent
748ffc77c6
commit
505d966850
@ -653,8 +653,8 @@ static CURLcode imap_perform_list(struct connectdata *conn)
|
|||||||
result = imap_sendf(conn, "%s%s", imap->custom,
|
result = imap_sendf(conn, "%s%s", imap->custom,
|
||||||
imap->custom_params ? imap->custom_params : "");
|
imap->custom_params ? imap->custom_params : "");
|
||||||
else {
|
else {
|
||||||
/* Make sure the mailbox is in the correct atom format */
|
/* Make sure the mailbox is in the correct atom format if necessary */
|
||||||
mailbox = imap_atom(imap->mailbox ? imap->mailbox : "");
|
mailbox = imap->mailbox ? imap_atom(imap->mailbox) : "";
|
||||||
if(!mailbox)
|
if(!mailbox)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user