Skip to content

Commit af537a6

Browse files
committed
Move definition to beginning of block
1 parent b00ae2a commit af537a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wolfcrypt/src/asn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18975,15 +18975,15 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert)
1897518975
}
1897618976

1897718977
while ((ret == 0) && (idx < sz)) {
18978+
ASNGetData dataASN[altNameASN_Length];
18979+
1897818980
numNames++;
1897918981
if (numNames > WOLFSSL_MAX_ALT_NAMES) {
1898018982
WOLFSSL_MSG("\tToo many subject alternative names");
1898118983
ret = ASN_ALT_NAME_E;
1898218984
break;
1898318985
}
1898418986

18985-
ASNGetData dataASN[altNameASN_Length];
18986-
1898718987
/* Clear dynamic data items. */
1898818988
XMEMSET(dataASN, 0, sizeof(dataASN));
1898918989
/* Parse GeneralName with the choices supported. */

0 commit comments

Comments
 (0)