mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
gopher: fixed detection of an error condition from Curl_urldecode
This commit is contained in:
parent
516e60aa8e
commit
f7285cc02b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user