Skip to content

Commit eb12225

Browse files
Fix variable declaration order for Visual Studio.
1 parent 7a98d90 commit eb12225

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/internal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8641,6 +8641,9 @@ static int BuildUserAuthRequestEcc(WOLFSSH* ssh,
86418641
word32 rSz = ECC_MAX_SIG_SIZE / 2;
86428642
word32 sSz = ECC_MAX_SIG_SIZE / 2;
86438643
word32 sigSz = ECC_MAX_SIG_SIZE;
8644+
byte* checkData = NULL;
8645+
word32 checkDataSz = 0;
8646+
86448647
#ifdef WOLFSSH_SMALL_STACK
86458648
r_ptr = (byte*)WMALLOC(rSz, ssh->ctx->heap, DYNTYPE_BUFFER);
86468649
s_ptr = (byte*)WMALLOC(sSz, ssh->ctx->heap, DYNTYPE_BUFFER);
@@ -8655,8 +8658,6 @@ static int BuildUserAuthRequestEcc(WOLFSSH* ssh,
86558658
s_ptr = s_s;
86568659
sig_ptr = sig_s;
86578660
#endif
8658-
byte* checkData = NULL;
8659-
word32 checkDataSz = 0;
86608661

86618662
if (ssh == NULL || output == NULL || idx == NULL || authData == NULL ||
86628663
sigStart == NULL || keySig == NULL) {

0 commit comments

Comments
 (0)