1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mbedtls-x509: coverity: remove needless check

ip can't be NULL, it's set to the address of another object.
This commit is contained in:
Andy Green 2021-11-08 09:53:56 +00:00
parent a00703f500
commit 6e9c25d1f7

View file

@ -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) ||