diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2009-03-31 14:49:25 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2009-03-31 14:49:25 +0000 |
commit | 18e1bee8d55087681fc3d9ffba58ffedbf58ee6e (patch) | |
tree | 4a8aed46133d2d5220a32a415ff79ff46379c8fd /lib/easy.c | |
parent | 41f76801ebd45f426c21fd683ee54426c571108b (diff) | |
download | curl-18e1bee8d55087681fc3d9ffba58ffedbf58ee6e.tar.gz |
Properly return an error code in curl_easy_recv (reported by Jim Freeman).
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c index dc6c59366..a58193495 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -1095,8 +1095,8 @@ CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, size_t *n) if(ret1 == -1) return CURLE_AGAIN; - if(n1 == -1) - return CURLE_RECV_ERROR; + if(ret1 != CURLE_OK) + return ret1; *n = (size_t)n1; |