mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 19:05:44 +00:00
Fix length check in ssl_write_ticket()
This commit is contained in:
parent
879a4f9623
commit
5d53cbef3a
|
@ -212,7 +212,7 @@ static int ssl_write_ticket( ssl_context *ssl, size_t *tlen )
|
|||
*/
|
||||
state = p + 2;
|
||||
if( ssl_save_session( ssl->session_negotiate, state,
|
||||
SSL_MAX_CONTENT_LEN - ( state - ssl->out_ctr ) - 48,
|
||||
SSL_MAX_CONTENT_LEN - ( state - ssl->out_msg ) - 48,
|
||||
&clear_len ) != 0 )
|
||||
{
|
||||
return( POLARSSL_ERR_SSL_CERTIFICATE_TOO_LARGE );
|
||||
|
|
Loading…
Reference in a new issue