forked from wolfSSL/wolfssl
Initialize variables to NULL
This commit is contained in:
@ -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;
|
||||||
|
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;
|
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
|
||||||
|
Reference in New Issue
Block a user