Skip to content

Commit f4f4c7c

Browse files
committed
src/ssl.c: fix clang-analyzer-deadcode.DeadStores in check_cert_key().
1 parent a944575 commit f4f4c7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7468,6 +7468,8 @@ static int check_cert_key(const DerBuffer* cert, const DerBuffer* key,
74687468
}
74697469

74707470
if (ret == WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
7471+
#else
7472+
if (ret == WOLFSSL_SUCCESS)
74717473
#endif /* WOLF_PRIVATE_KEY_ID */
74727474
{
74737475
ret = wc_CheckPrivateKeyCert(buff, size, der, 1, heap);

0 commit comments

Comments
 (0)