mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 00:30:49 +02:00
Macro guard parameter null check.
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user