1
0
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:
Patrick Monnerat 2017-10-13 17:16:57 +01:00
parent 10a659dbf6
commit d7e4230538

View File

@ -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;
}