Skip to content

Commit dd55cdb

Browse files
author
Lealem Amedie
committed
Initialize variables to NULL
1 parent 5046e57 commit dd55cdb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37155,7 +37155,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3715537155
{
3715637156
int decryptRet = WOLFSSL_TICKET_RET_REJECT;
3715737157
int ret;
37158-
InternalTicket* it;
37158+
InternalTicket* it = NULL;
3715937159
#ifdef WOLFSSL_TLS13
3716037160
InternalTicket staticIt;
3716137161
const WOLFSSL_SESSION* sess = NULL;

src/pk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7626,7 +7626,7 @@ static int wolfssl_dhparams_to_der(WOLFSSL_DH* dh, unsigned char** out,
76267626
int err = 0;
76277627
byte* der = NULL;
76287628
word32 derSz;
7629-
DhKey* key;
7629+
DhKey* key = NULL;
76307630

76317631
(void)heap;
76327632

@@ -8306,7 +8306,7 @@ int wolfSSL_DH_generate_parameters_ex(WOLFSSL_DH* dh, int prime_len,
83068306
int generator, void (*callback) (int, int, void *))
83078307
{
83088308
int ret = 1;
8309-
DhKey* key;
8309+
DhKey* key = NULL;
83108310
#ifdef WOLFSSL_SMALL_STACK
83118311
WC_RNG* tmpRng = NULL;
83128312
#else

0 commit comments

Comments
 (0)