Skip to content

Commit afed9d4

Browse files
committed
fixup! ProcessServerHello: verify extension lengths
1 parent ae3fcb5 commit afed9d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sniffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,7 @@ static int ProcessServerHello(int msgSz, const byte* input, int* sslBytes,
38673867
}
38683868
#endif
38693869
case EXT_SUPPORTED_VERSIONS:
3870-
if (extLen < 2) {
3870+
if (extLen != 2) {
38713871
SetError(SERVER_HELLO_INPUT_STR, error, session,
38723872
FATAL_ERROR_STATE);
38733873
return WOLFSSL_FATAL_ERROR;

0 commit comments

Comments
 (0)