Merge pull request #3105 from AndrzejKurek/ssl-srv-initialize-flags

ssl_srv.c: initialize flags on each iteration of the loop
This commit is contained in:
Manuel Pégourié-Gonnard 2020-03-23 11:36:17 +01:00 committed by GitHub
commit 6bbfcc7c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -840,6 +840,7 @@ static int ssl_pick_cert( mbedtls_ssl_context *ssl,
for( cur = list; cur != NULL; cur = cur->next )
{
flags = 0;
MBEDTLS_SSL_DEBUG_CRT( 3, "candidate certificate chain, certificate",
cur->cert );