mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 16:55:31 +00:00
x509.c: Remove one unnecessary cast
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
7e6075b7fd
commit
ddc2db4c13
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue