Skip to content

Commit

Permalink
ext: crypto: mbedtls: Fix uninitialized variable
Browse files Browse the repository at this point in the history
This patch fixes an issue with an uninitialized variable in the x509
mbedtls feature.  I sent a related patch to the mbedtls project so
that this can be fixed in the future.

Mbed-TLS/mbedtls#2392

Signed-off-by: Andy Gross <andy.gross@linaro.org>
  • Loading branch information
Andy Gross committed Feb 7, 2019
1 parent df4b2bd commit 7495e2d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ext/lib/crypto/mbedtls/library/x509_crt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2088,15 +2088,13 @@ static int x509_crt_find_parent_in(
continue;
}

break;
}

if( parent != NULL )
{
*r_parent = parent;
*r_signature_is_good = signature_is_good;

break;
}
else

if (parent == NULL)
{
*r_parent = fallback_parent;
*r_signature_is_good = fallback_signature_is_good;
Expand Down

0 comments on commit 7495e2d

Please sign in to comment.