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
1 changed files with 3 additions and 1 deletions
|
@ -5672,7 +5672,9 @@ static int ssl_write_real(mbedtls_ssl_context *ssl,
|
|||
*/
|
||||
ssl->out_msglen = len;
|
||||
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) {
|
||||
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_write_record", ret);
|
||||
|
|
Loading…
Reference in a new issue