commit | ddc2db4c13133ff8102c08b7dc2b5127108f6bc9 | [log] [tgz] |
---|---|---|
author | Andrzej Kurek <andrzej.kurek@arm.com> | Thu Jul 16 04:37:41 2020 -0400 |
committer | Andrzej Kurek <andrzej.kurek@arm.com> | Thu Jul 16 04:41:48 2020 -0400 |
tree | 7b1baada4adec6a7459844aa8401993548b429b5 | |
parent | 7e6075b7fd5fdb965c9491af2ebd629594bfebd4 [diff] [blame] |
x509.c: Remove one unnecessary cast Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/library/x509.c b/library/x509.c index 093a315..65f2ec6 100644 --- a/library/x509.c +++ b/library/x509.c
@@ -176,7 +176,7 @@ return( MBEDTLS_ERR_X509_INVALID_ALG + MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ); - p = (unsigned char *) alg->p; + p = alg->p; end = p + alg->len; if( p >= end )