gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 09/205: gopher: fixed detection of an error conditi


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 09/205: gopher: fixed detection of an error condition from Curl_urldecode
Date: Thu, 20 Apr 2017 16:19:09 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6
Author: Dan Fandrich <address@hidden>
AuthorDate: Sun Feb 26 00:10:30 2017 +0100

    gopher: fixed detection of an error condition from Curl_urldecode
---
 lib/gopher.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/gopher.c b/lib/gopher.c
index a073d0ba2..6b57d3519 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -106,8 +106,8 @@ static CURLcode gopher_do(struct connectdata *conn, bool 
*done)
 
     /* ... and finally unescape */
     result = Curl_urldecode(data, newp, 0, &sel, &len, FALSE);
-    if(!sel)
-      return CURLE_OUT_OF_MEMORY;
+    if(result)
+      return result;
     sel_org = sel;
   }
 

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



reply via email to

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