components/openssl: fixes for github issues 219
"SSL_write" doesn't send large buffers correctly
This commit is contained in:
parent
905180667c
commit
1d0c909daf
|
@ -463,7 +463,7 @@ int SSL_write(SSL *ssl, const void *buffer, int len)
|
|||
else
|
||||
bytes = send_bytes;
|
||||
|
||||
ret = SSL_METHOD_CALL(send, ssl, buffer, bytes);
|
||||
ret = SSL_METHOD_CALL(send, ssl, pbuf, bytes);
|
||||
if (ret > 0) {
|
||||
pbuf += ret;
|
||||
send_bytes -= ret;
|
||||
|
|
Loading…
Reference in a new issue