From 1d0c909daf45d929f957931f7decc2ff881414f8 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Tue, 24 Jan 2017 17:36:32 +0800 Subject: [PATCH] components/openssl: fixes for github issues 219 "SSL_write" doesn't send large buffers correctly --- components/openssl/library/ssl_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/openssl/library/ssl_lib.c b/components/openssl/library/ssl_lib.c index 43c130077e..8b539826dc 100644 --- a/components/openssl/library/ssl_lib.c +++ b/components/openssl/library/ssl_lib.c @@ -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;