From ddc2db4c13133ff8102c08b7dc2b5127108f6bc9 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Thu, 16 Jul 2020 04:37:41 -0400 Subject: [PATCH] x509.c: Remove one unnecessary cast Signed-off-by: Andrzej Kurek --- library/x509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509.c b/library/x509.c index 093a315f8..65f2ec666 100644 --- a/library/x509.c +++ b/library/x509.c @@ -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 + MBEDTLS_ERR_ASN1_UNEXPECTED_TAG ); - p = (unsigned char *) alg->p; + p = alg->p; end = p + alg->len; if( p >= end )