Skip to content

Commit

Permalink
Initialize variables to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Lealem Amedie committed Dec 18, 2023
1 parent 5046e57 commit dd55cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd55cdb

Please sign in to comment.