diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2017-02-26 00:10:30 +0100 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2017-02-26 00:10:30 +0100 |
commit | f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6 (patch) | |
tree | efcfc1800be2671a245234b51baf36e4fc742e66 /lib/gopher.c | |
parent | 516e60aa8e96c0b9a0364baa0f84a625e988b06f (diff) | |
download | curl-f7285cc02b6a3aabf7ccc6959f46f0d17d179ab6.tar.gz |
gopher: fixed detection of an error condition from Curl_urldecode
Diffstat (limited to 'lib/gopher.c')
-rw-r--r-- | lib/gopher.c | 4 |
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; } |