commit | d37839e3fabccb62dbd3e45ba5e6f7fef5d43e5b | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Thu Jun 08 15:56:50 2017 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Thu Jun 08 15:59:38 2017 +0100 |
tree | 0f7750cfc45e1e0ecd67d384fbbc5c3ecfe2faa4 | |
parent | 10699cc96c2d1cf6e4d70731bb2167851c344c9a [diff] [blame] |
Fix mbedtls_ssl_read Don't fetch a new record in mbedtls_ssl_read_record_layer as long as an application data record is being processed.
diff --git a/library/ssl_cli.c b/library/ssl_cli.c index c12543f..5f5beec 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c
@@ -1195,6 +1195,8 @@ } SSL_DEBUG_MSG( 1, ( "non-handshake message during renego" ) ); + + ssl->keep_current_message = 1; return( POLARSSL_ERR_SSL_WAITING_SERVER_HELLO_RENEGO ); } #endif /* POLARSSL_SSL_RENEGOTIATION */