From 6e9c25d1f76f40a91a070a237359189feb3f8d7d Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 8 Nov 2021 09:53:56 +0000 Subject: [PATCH] mbedtls-x509: coverity: remove needless check ip can't be NULL, it's set to the address of another object. --- lib/tls/mbedtls/mbedtls-x509.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/tls/mbedtls/mbedtls-x509.c b/lib/tls/mbedtls/mbedtls-x509.c index b6d944d35..2dad865d6 100644 --- a/lib/tls/mbedtls/mbedtls-x509.c +++ b/lib/tls/mbedtls/mbedtls-x509.c @@ -220,9 +220,6 @@ lws_tls_mbedtls_cert_info(mbedtls_x509_crt *x509, enum lws_tls_cert_info type, buf->ns.len = 0; - if (!ip) - return 1; - while (ip) { if (akid.keyIdentifier.MBEDTLS_PRIVATE(tag) != MBEDTLS_ASN1_OCTET_STRING || !ip->MBEDTLS_PRIVATE(buf).MBEDTLS_PRIVATE(p) ||