mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-25 14:51:26 +08:00
Add corresponding fix for mbedtls_ssl_write
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
88240e769f
commit
f68402565a
@ -5672,7 +5672,9 @@ static int ssl_write_real(mbedtls_ssl_context *ssl,
|
|||||||
*/
|
*/
|
||||||
ssl->out_msglen = len;
|
ssl->out_msglen = len;
|
||||||
ssl->out_msgtype = MBEDTLS_SSL_MSG_APPLICATION_DATA;
|
ssl->out_msgtype = MBEDTLS_SSL_MSG_APPLICATION_DATA;
|
||||||
memcpy(ssl->out_msg, buf, len);
|
if (len > 0) {
|
||||||
|
memcpy(ssl->out_msg, buf, len);
|
||||||
|
}
|
||||||
|
|
||||||
if ((ret = mbedtls_ssl_write_record(ssl, SSL_FORCE_FLUSH)) != 0) {
|
if ((ret = mbedtls_ssl_write_record(ssl, SSL_FORCE_FLUSH)) != 0) {
|
||||||
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_write_record", ret);
|
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_write_record", ret);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user