mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
imap: avoid freeing constant string
The fix in 1a614c6c3
was wrong and would leed to free() of a fixed
string.
Pointed-out-by: Kamil Dudka
This commit is contained in:
parent
6225c48a03
commit
f54a4aa9a3
@ -654,7 +654,7 @@ static CURLcode imap_perform_list(struct connectdata *conn)
|
||||
imap->custom_params ? imap->custom_params : "");
|
||||
else {
|
||||
/* Make sure the mailbox is in the correct atom format if necessary */
|
||||
mailbox = imap->mailbox ? imap_atom(imap->mailbox, true) : (char *) "";
|
||||
mailbox = imap->mailbox ? imap_atom(imap->mailbox, true) : strdup("");
|
||||
if(!mailbox)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user