]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gopher: fixed detection of an error condition from Curl_urldecode
authorDan Fandrich <dan@coneharvesters.com>
Sat, 25 Feb 2017 23:10:30 +0000 (00:10 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 25 Feb 2017 23:10:30 +0000 (00:10 +0100)
lib/gopher.c

index a073d0ba275702980d0caaad093d66d39d549a87..6b57d35199f42e1117d85c5582de874f9f7ab326 100644 (file)
@@ -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;
   }