diff options
author | Andy Green <andy@warmcat.com> | 2021-11-08 09:53:56 +0000 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2021-11-08 11:05:28 +0000 |
commit | 6e9c25d1f76f40a91a070a237359189feb3f8d7d (patch) | |
tree | b1ac4b860c611d6e19491d6d0e40a562cbbb1be9 | |
parent | a00703f50074f53d4af0250c6340245e3470490b (diff) | |
download | libwebsockets-6e9c25d1f76f40a91a070a237359189feb3f8d7d.tar.gz |
mbedtls-x509: coverity: remove needless check
ip can't be NULL, it's set to the address of another object.
-rw-r--r-- | lib/tls/mbedtls/mbedtls-x509.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/tls/mbedtls/mbedtls-x509.c b/lib/tls/mbedtls/mbedtls-x509.c index b6d944d3..2dad865d 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) || |