Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Initialization Warnings #714

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@ static int GetInputText(WOLFSSH* ssh, byte** pEol)
int gotLine = 0;
int inSz = 255;
int in;
char *eol;
char *eol = NULL;

if (GrowBuffer(&ssh->inputBuffer, inSz) < 0)
return WS_MEMORY_E;
Expand Down Expand Up @@ -4099,7 +4099,7 @@ static int DoKexInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
wc_HashAlg* hash = &ssh->handshake->kexHash;
enum wc_HashType hashId = (enum wc_HashType)ssh->handshake->kexHashId;
byte scratchLen[LENGTH_SZ];
word32 strSz;
word32 strSz = 0;

if (!ssh->isKeying) {
WLOG(WS_LOG_DEBUG, "Keying initiated");
Expand Down Expand Up @@ -4446,7 +4446,7 @@ static int ParseECCPubKey(WOLFSSH *ssh,
#ifndef WOLFSSH_NO_ECDSA
const byte* q;
word32 qSz, pubKeyIdx = 0;
int primeId;
int primeId = 0;
word32 scratch;

ret = wc_ecc_init_ex(&sigKeyBlock_ptr->sk.ecc.key, ssh->ctx->heap,
Expand Down Expand Up @@ -11262,7 +11262,7 @@ int SendKexDhReply(WOLFSSH* ssh)
byte f_s[KEX_F_SIZE];
byte sig_s[KEX_SIG_SIZE];
#endif
byte msgId;
byte msgId = 0;
byte useDh = 0;
byte useEcc = 0;
byte useCurve25519 = 0;
Expand Down Expand Up @@ -13980,7 +13980,7 @@ int SendUserAuthFailure(WOLFSSH* ssh, byte partialSuccess)
byte* output;
word32 idx;
int ret = WS_SUCCESS;
int authSz;
int authSz = 0;
char authStr[MAX_AUTH_STRING];

WLOG(WS_LOG_DEBUG, "Entering SendUserAuthFailure()");
Expand Down Expand Up @@ -14503,7 +14503,7 @@ int SendChannelEow(WOLFSSH* ssh, word32 peerChannelId)
byte* output;
const char* str = "[email protected]";
word32 idx;
word32 strSz;
word32 strSz = 0;
int ret = WS_SUCCESS;
WOLFSSH_CHANNEL* channel = NULL;

Expand Down Expand Up @@ -14560,7 +14560,7 @@ int SendChannelExit(WOLFSSH* ssh, word32 peerChannelId, int status)
byte* output;
const char* str = "exit-status";
word32 idx;
word32 strSz;
word32 strSz = 0;
int ret = WS_SUCCESS;
WOLFSSH_CHANNEL* channel = NULL;

Expand Down
Loading