From: Dan Fandrich Date: Sat, 25 Feb 2017 23:10:30 +0000 (+0100) Subject: gopher: fixed detection of an error condition from Curl_urldecode X-Git-Tag: curl-7_54_0~195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6;p=thirdparty%2Fcurl.git gopher: fixed detection of an error condition from Curl_urldecode --- diff --git a/lib/gopher.c b/lib/gopher.c index a073d0ba27..6b57d35199 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; }