curl-library
curl_easy_recv error handling bug?
Date: Mon, 23 Mar 2009 13:09:36 -0700
curl_easy_recv calls Curl_read which calls Curl_read_plain.
curl_easy_recv only assumes an error occurred if Curl_read returns -1.
Curl_read (and Curl_read_plain) can return CURLE_RECV_ERROR (56). That
error code gets returned to curl_easy_recv which only checks for -1 and
thus thinks there's no error.
This is in the latest 7.19.4 source
___________________________________________________________________
This electronic mail message, including any attachments or embedded documents, is intended
only for the addressee and may contain privileged and/or confidential information. Unless
expressly indicated, this electronic mail message is confidential and privileged information
of Nirvanix, Inc. Any use, dissemination, copying or distribution in any form, and any action
taken based up this email is strictly prohibited unless expressly indicated. If you have
received this message by error, please immediately delete it and any copies of it, including
any attachments hereto, and notify the sender at Nirvanix, Inc. by reply electronic mail
message or phone. Thank you.
Received on 2009-03-23