aboutsummaryrefslogtreecommitdiff
path: root/lib/strdup.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-06-23 10:31:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-06-23 12:05:21 +0200
commit8a7a277c086199b37c07a8e01165168037866f3e (patch)
tree7e67ef97f458c192096daab28ccd9884d1d6472b /lib/strdup.c
parent0030fbd382e244ab1503a8254ebddc63ccec7940 (diff)
ossl_recv: check for an OpenSSL error, don't assume
When we recently started to treat a zero return code from SSL_read() as an error we also got false positives - which primarily looks to be because the OpenSSL documentation is wrong and a zero return code is not at all an error case in many situations. Now ossl_recv() will check with ERR_get_error() to see if there is a stored error and only then consider it to be a true error if SSL_read() returned zero. Bug: http://curl.haxx.se/bug/view.cgi?id=1249 Reported-by: Nach M. S. Patch-by: Nach M. S.
Diffstat (limited to 'lib/strdup.c')
0 files changed, 0 insertions, 0 deletions