summaryrefslogtreecommitdiff
path: root/lib/gopher.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-02-26 00:10:30 +0100
committerDan Fandrich <dan@coneharvesters.com>2017-02-26 00:10:30 +0100
commitf7285cc02b6a3aabf7ccc6959f46f0d17d179ab6 (patch)
treeefcfc1800be2671a245234b51baf36e4fc742e66 /lib/gopher.c
parent516e60aa8e96c0b9a0364baa0f84a625e988b06f (diff)
downloadcurl-f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6.tar.gz
gopher: fixed detection of an error condition from Curl_urldecode
Diffstat (limited to 'lib/gopher.c')
-rw-r--r--lib/gopher.c4
1 files changed, 2 insertions, 2 deletions
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;
}