From f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sun, 26 Feb 2017 00:10:30 +0100 Subject: gopher: fixed detection of an error condition from Curl_urldecode --- lib/gopher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3