Skip to content

Commit

Permalink
Merge pull request #7172 from bandi13/fixUninitVar
Browse files Browse the repository at this point in the history
Fix compilation errors about uninitialized variables
  • Loading branch information
JacobBarthelmeh authored Jan 26, 2024
2 parents 578735e + 4971b9a commit db3873f
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions examples/asn1/asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ static int FindPem(unsigned char* data, word32 offset, word32 len,
word32* start, word32* end)
{
int ret = 0;
word32 i;
word32 j;
word32 i = 0;
word32 j = 0;

/* Find header. */
for (i = offset; i < len; i++) {
Expand Down
12 changes: 6 additions & 6 deletions src/tls13.c
Original file line number Diff line number Diff line change
Expand Up @@ -4724,8 +4724,8 @@ static int EchCheckAcceptance(WOLFSSL* ssl, const byte* input,
int serverRandomOffset, int helloSz)
{
int ret = 0;
int digestType;
int digestSize;
int digestType = 0;
int digestSize = 0;
HS_Hashes* tmpHashes;
HS_Hashes* acceptHashes;
byte zeros[WC_MAX_DIGEST_SIZE];
Expand Down Expand Up @@ -4857,10 +4857,10 @@ static int EchWriteAcceptance(WOLFSSL* ssl, byte* output,
int serverRandomOffset, int helloSz)
{
int ret = 0;
int digestType;
int digestSize;
HS_Hashes* tmpHashes;
HS_Hashes* acceptHashes;
int digestType = 0;
int digestSize = 0;
HS_Hashes* tmpHashes = NULL;
HS_Hashes* acceptHashes = NULL;
byte zeros[WC_MAX_DIGEST_SIZE];
byte transcriptEchConf[WC_MAX_DIGEST_SIZE];
byte expandLabelPrk[WC_MAX_DIGEST_SIZE];
Expand Down
Loading

0 comments on commit db3873f

Please sign in to comment.