diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-10-13 17:16:57 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-10-13 17:16:57 +0100 |
commit | d7e4230538b57c399937e513e05cab60073b6780 (patch) | |
tree | 6996586afd91d4cb490badb60c9919cac1d17e50 | |
parent | 10a659dbf64602c13875af4f79360eaccab9e6d3 (diff) |
mime: do not call failf() if easy handle is NULL.
-rw-r--r-- | lib/mime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mime.c b/lib/mime.c index c337a35c9..c3c370891 100644 --- a/lib/mime.c +++ b/lib/mime.c @@ -1437,7 +1437,8 @@ CURLcode Curl_mime_set_subparts(curl_mimepart *part, while(root->parent && root->parent->parent) root = root->parent->parent; if(subparts == root) { - failf(part->easy, "Can't add itself as a subpart!"); + if(part->easy) + failf(part->easy, "Can't add itself as a subpart!"); return CURLE_BAD_FUNCTION_ARGUMENT; } } |