diff --git a/ChangeLog b/ChangeLog index 7b9adfdd1..3c52d5879 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,9 @@ Bugfix Philippe Antoine from Catena cyber. #1663. * Fix namespacing in header files. Remove the `mbedtls` namespacing in the `#include` in the header files. Resolves #857 + * Fix compiler warning of 'use before initialisation' in + mbedtls_pk_parse_key(). Found by Martin Boye Petersen and fixed by Dawid + Drozd. #1098 Changes * Change the shebang line in Perl scripts to look up perl in the PATH. diff --git a/library/pkparse.c b/library/pkparse.c index 26a8b70ec..a83bb01c7 100644 --- a/library/pkparse.c +++ b/library/pkparse.c @@ -1268,7 +1268,6 @@ int mbedtls_pk_parse_key( mbedtls_pk_context *pk, return( ret ); #endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */ #else - ((void) ret); ((void) pwd); ((void) pwdlen); #endif /* MBEDTLS_PEM_PARSE_C */