Macro guard parameter null check.

This commit is contained in:
Anthony Hu
2026-03-03 15:06:46 -05:00
parent 9102df3c83
commit 069be208ee
+5 -1
View File
@@ -42474,14 +42474,18 @@ int wc_SignCRL_ex(const byte* tbsBuf, int tbsSz, int sType,
return BAD_FUNC_ARG;
if (rsaKey == NULL && eccKey == NULL)
return BAD_FUNC_ARG;
if (rsaKey != NULL && eccKey != NULL)
return BAD_FUNC_ARG;
XMEMSET(certSignCtx, 0, sizeof(*certSignCtx));
#ifndef NO_RSA
if (rsaKey != NULL) {
heap = rsaKey->heap;
}
#endif
#ifdef HAVE_ECC
else if (eccKey != NULL) {
if (eccKey != NULL) {
heap = eccKey->heap;
}
#endif