Initialize variables to NULL
This commit is contained in:
parent
5046e577d3
commit
dd55cdbea8
@ -37155,7 +37155,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
{
|
||||
int decryptRet = WOLFSSL_TICKET_RET_REJECT;
|
||||
int ret;
|
||||
InternalTicket* it;
|
||||
InternalTicket* it = NULL;
|
||||
#ifdef WOLFSSL_TLS13
|
||||
InternalTicket staticIt;
|
||||
const WOLFSSL_SESSION* sess = NULL;
|
||||
|
4
src/pk.c
4
src/pk.c
@ -7626,7 +7626,7 @@ static int wolfssl_dhparams_to_der(WOLFSSL_DH* dh, unsigned char** out,
|
||||
int err = 0;
|
||||
byte* der = NULL;
|
||||
word32 derSz;
|
||||
DhKey* key;
|
||||
DhKey* key = NULL;
|
||||
|
||||
(void)heap;
|
||||
|
||||
@ -8306,7 +8306,7 @@ int wolfSSL_DH_generate_parameters_ex(WOLFSSL_DH* dh, int prime_len,
|
||||
int generator, void (*callback) (int, int, void *))
|
||||
{
|
||||
int ret = 1;
|
||||
DhKey* key;
|
||||
DhKey* key = NULL;
|
||||
#ifdef WOLFSSL_SMALL_STACK
|
||||
WC_RNG* tmpRng = NULL;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user