commit | bbd5a3fded73092349306d084b75de0b6a9b2c1f | [log] [tgz] |
---|---|---|
author | Jerry Yu <jerry.h.yu@arm.com> | Sat Sep 18 20:50:22 2021 +0800 |
committer | Jerry Yu <jerry.h.yu@arm.com> | Mon Sep 27 16:25:38 2021 +0800 |
tree | be90d76e81a6814facb591391f65c21f9abec054 | |
parent | 394ece6cdd71d06e2186024769170588bb342ac8 [diff] [blame] |
fix pending_alert issues Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 7bb5f9f..c11810d 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -5205,10 +5205,15 @@ if( ret != 0 ) { + /* handshake_step return error. And it is same + * with alert_reason. + */ int alert_ret; alert_ret = mbedtls_ssl_handle_pending_alert( ssl ); if( alert_ret != 0 ) { + /* If success send, ret == alert_ret. + */ ret = alert_ret; goto cleanup; }