mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix unreachable code error
This commit is contained in:
@ -304,13 +304,13 @@ static int ParseClientHello(const byte* input, word32 helloSz, WolfSSL_CH* ch,
|
|||||||
idx += ReadVector16(input + idx, &ch->extension);
|
idx += ReadVector16(input + idx, &ch->extension);
|
||||||
if (idx > helloSz) {
|
if (idx > helloSz) {
|
||||||
#ifdef WOLFSSL_DTLS_CH_FRAG
|
#ifdef WOLFSSL_DTLS_CH_FRAG
|
||||||
|
idx = helloSz;
|
||||||
/* Allow incomplete extensions if we are parsing a fragment */
|
/* Allow incomplete extensions if we are parsing a fragment */
|
||||||
if (isFirstCHFrag && extStart < helloSz)
|
if (isFirstCHFrag && extStart < helloSz)
|
||||||
ch->extension.size = helloSz - extStart;
|
ch->extension.size = helloSz - extStart;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
idx = helloSz;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (idx != helloSz)
|
if (idx != helloSz)
|
||||||
|
Reference in New Issue
Block a user