Skip to content

Commit 1e770e1

Browse files
Send decode_error alert rather than illegal_parameter when receiving an empty/malformed keyshare extension. Fixes #9640.
1 parent 4bb4648 commit 1e770e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9894,7 +9894,7 @@ static int TLSX_KeyShareEntry_Parse(const WOLFSSL* ssl, const byte* input,
98949894
ato16(&input[offset], &keLen);
98959895
offset += OPAQUE16_LEN;
98969896
if (keLen == 0)
9897-
return INVALID_PARAMETER;
9897+
return BUFFER_ERROR;
98989898
if (keLen > length - offset)
98999899
return BUFFER_ERROR;
99009900

0 commit comments

Comments
 (0)