gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 10/220: curl:create_transfers check return code fro


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 10/220: curl:create_transfers check return code from curl_easy_setopt
Date: Thu, 12 Sep 2019 17:26:10 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 23c99f60babd64164776c8bef1525fa411f8bed1
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Jul 21 13:21:13 2019 +0200

    curl:create_transfers check return code from curl_easy_setopt
    
    From commit b8894085
    
    Pointed out by Coverity CID 1451703
    
    Closes #4134
---
 src/tool_operate.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tool_operate.c b/src/tool_operate.c
index 14fffda36..6b2d89ffb 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1110,7 +1110,9 @@ static CURLcode create_transfers(struct GlobalConfig 
*global,
 
         /* avoid having this setopt added to the --libcurl source
            output */
-        curl_easy_setopt(curl, CURLOPT_SHARE, share);
+        result = curl_easy_setopt(curl, CURLOPT_SHARE, share);
+        if(result)
+          goto show_error;
 
         if(!config->tcp_nodelay)
           my_setopt(curl, CURLOPT_TCP_NODELAY, 0L);

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



reply via email to

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