forked from wolfSSL/wolfssl
Fix uninitialized warning
This commit is contained in:
@ -1040,7 +1040,7 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
|
|||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
|
|
||||||
for (size = 0; offset < length; offset += size) {
|
for (size = 0; offset < length; offset += size) {
|
||||||
SNI *sni;
|
SNI *sni = NULL;
|
||||||
byte type = input[offset++];
|
byte type = input[offset++];
|
||||||
|
|
||||||
if (offset + OPAQUE16_LEN > length)
|
if (offset + OPAQUE16_LEN > length)
|
||||||
|
Reference in New Issue
Block a user