mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
- Fixed infinite loop
This commit is contained in:
@ -141,7 +141,11 @@ static int ssl_parse_signature_algorithms_ext( ssl_context *ssl,
|
|||||||
while( sig_alg_list_size > 0 )
|
while( sig_alg_list_size > 0 )
|
||||||
{
|
{
|
||||||
if( p[1] != SSL_SIG_RSA )
|
if( p[1] != SSL_SIG_RSA )
|
||||||
|
{
|
||||||
|
sig_alg_list_size -= 2;
|
||||||
|
p += 2;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
#if defined(POLARSSL_SHA4_C)
|
#if defined(POLARSSL_SHA4_C)
|
||||||
if( p[0] == SSL_HASH_SHA512 )
|
if( p[0] == SSL_HASH_SHA512 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user