gopher: fixed detection of an error condition from Curl_urldecode

This commit is contained in:
Dan Fandrich 2017-02-26 00:10:30 +01:00
parent 516e60aa8e
commit f7285cc02b

View 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;
}