components/openssl: fixes for github issues 219

"SSL_write" doesn't send large buffers correctly
This commit is contained in:
Dong Heng 2017-01-24 17:36:32 +08:00
parent 905180667c
commit 1d0c909daf

View file

@ -463,7 +463,7 @@ int SSL_write(SSL *ssl, const void *buffer, int len)
else else
bytes = send_bytes; bytes = send_bytes;
ret = SSL_METHOD_CALL(send, ssl, buffer, bytes); ret = SSL_METHOD_CALL(send, ssl, pbuf, bytes);
if (ret > 0) { if (ret > 0) {
pbuf += ret; pbuf += ret;
send_bytes -= ret; send_bytes -= ret;