gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 50/73: mime: do not call failf() if easy handle is


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 50/73: mime: do not call failf() if easy handle is NULL.
Date: Tue, 24 Oct 2017 18:54:31 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit d7e4230538b57c399937e513e05cab60073b6780
Author: Patrick Monnerat <address@hidden>
AuthorDate: Fri Oct 13 17:16:57 2017 +0100

    mime: do not call failf() if easy handle is NULL.
---
 lib/mime.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]