- Fixed infinite loop
This commit is contained in:
parent
b0550d90c9
commit
8611e73dd3
1 changed files with 4 additions and 0 deletions
|
@ -141,7 +141,11 @@ static int ssl_parse_signature_algorithms_ext( ssl_context *ssl,
|
|||
while( sig_alg_list_size > 0 )
|
||||
{
|
||||
if( p[1] != SSL_SIG_RSA )
|
||||
{
|
||||
sig_alg_list_size -= 2;
|
||||
p += 2;
|
||||
continue;
|
||||
}
|
||||
#if defined(POLARSSL_SHA4_C)
|
||||
if( p[0] == SSL_HASH_SHA512 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue