gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 34/150: file: Check the return code from Curl_range


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 34/150: file: Check the return code from Curl_range and bail out on error
Date: Fri, 30 Mar 2018 16:48:08 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 811d96e9e210f94486ce90073fc0613b189cc368
Author: Max Dymond <address@hidden>
AuthorDate: Tue Jan 30 09:56:28 2018 +0000

    file: Check the return code from Curl_range and bail out on error
---
 lib/file.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/file.c b/lib/file.c
index ac611e6a1..528f34afb 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -456,7 +456,9 @@ static CURLcode file_do(struct connectdata *conn, bool 
*done)
   }
 
   /* Check whether file range has been specified */
-  Curl_range(conn);
+  result = Curl_range(conn);
+  if(result)
+    return result;
 
   /* Adjust the start offset in case we want to get the N last bytes
    * of the stream iff the filesize could be determined */

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



reply via email to

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