mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Move definition to beginning of block
This commit is contained in:
@ -18975,6 +18975,8 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert)
|
||||
}
|
||||
|
||||
while ((ret == 0) && (idx < sz)) {
|
||||
ASNGetData dataASN[altNameASN_Length];
|
||||
|
||||
numNames++;
|
||||
if (numNames > WOLFSSL_MAX_ALT_NAMES) {
|
||||
WOLFSSL_MSG("\tToo many subject alternative names");
|
||||
@ -18982,8 +18984,6 @@ static int DecodeAltNames(const byte* input, word32 sz, DecodedCert* cert)
|
||||
break;
|
||||
}
|
||||
|
||||
ASNGetData dataASN[altNameASN_Length];
|
||||
|
||||
/* Clear dynamic data items. */
|
||||
XMEMSET(dataASN, 0, sizeof(dataASN));
|
||||
/* Parse GeneralName with the choices supported. */
|
||||
|
Reference in New Issue
Block a user