src/ssl.c: fix clang-analyzer-deadcode.DeadStores in check_cert_key().

This commit is contained in:
Daniel Pouzzner
2025-12-24 17:49:33 -06:00
parent a944575e4b
commit f4f4c7cfae

View File

@@ -7468,6 +7468,8 @@ static int check_cert_key(const DerBuffer* cert, const DerBuffer* key,
}
if (ret == WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
#else
if (ret == WOLFSSL_SUCCESS)
#endif /* WOLF_PRIVATE_KEY_ID */
{
ret = wc_CheckPrivateKeyCert(buff, size, der, 1, heap);