mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mime: do not call failf() if easy handle is NULL.
This commit is contained in:
parent
10a659dbf6
commit
d7e4230538
@ -1437,6 +1437,7 @@ CURLcode Curl_mime_set_subparts(curl_mimepart *part,
|
||||
while(root->parent && root->parent->parent)
|
||||
root = root->parent->parent;
|
||||
if(subparts == root) {
|
||||
if(part->easy)
|
||||
failf(part->easy, "Can't add itself as a subpart!");
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user