Merge pull request #3509 from AndrzejKurek/fi-x509-changes

x509.c: Remove one unnecessary cast
This commit is contained in:
Andrzej Kurek 2020-08-03 12:11:47 +02:00 committed by GitHub
commit 84afe68ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ static int x509_get_hash_alg( const mbedtls_x509_buf *alg, mbedtls_md_type_t *md
return( MBEDTLS_ERR_X509_INVALID_ALG + return( MBEDTLS_ERR_X509_INVALID_ALG +
MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ); MBEDTLS_ERR_ASN1_UNEXPECTED_TAG );
p = (unsigned char *) alg->p; p = alg->p;
end = p + alg->len; end = p + alg->len;
if( p >= end ) if( p >= end )