Initialize variables to NULL

This commit is contained in:
Lealem Amedie
2023-12-18 16:51:51 -07:00
parent 5046e577d3
commit dd55cdbea8
2 changed files with 3 additions and 3 deletions

View File

@ -37155,7 +37155,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
{ {
int decryptRet = WOLFSSL_TICKET_RET_REJECT; int decryptRet = WOLFSSL_TICKET_RET_REJECT;
int ret; int ret;
InternalTicket* it; InternalTicket* it = NULL;
#ifdef WOLFSSL_TLS13 #ifdef WOLFSSL_TLS13
InternalTicket staticIt; InternalTicket staticIt;
const WOLFSSL_SESSION* sess = NULL; const WOLFSSL_SESSION* sess = NULL;

View File

@ -7626,7 +7626,7 @@ static int wolfssl_dhparams_to_der(WOLFSSL_DH* dh, unsigned char** out,
int err = 0; int err = 0;
byte* der = NULL; byte* der = NULL;
word32 derSz; word32 derSz;
DhKey* key; DhKey* key = NULL;
(void)heap; (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 generator, void (*callback) (int, int, void *))
{ {
int ret = 1; int ret = 1;
DhKey* key; DhKey* key = NULL;
#ifdef WOLFSSL_SMALL_STACK #ifdef WOLFSSL_SMALL_STACK
WC_RNG* tmpRng = NULL; WC_RNG* tmpRng = NULL;
#else #else