Merge pull request #3630 from mpg/rm-useless-cast-x509

x509.c: Remove one unnecessary cast
This commit is contained in:
Gilles Peskine 2020-09-10 22:01:52 +02:00 committed by GitHub
commit a75a06bde6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ static int x509_get_hash_alg( const mbedtls_x509_buf *alg, mbedtls_md_type_t *md
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 )