mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-10 07:00:50 +02:00
TLS 1.3 duplicate KeyShare entry fix
Fix comparison to be greater than or equal in case count is incremented after maxing out.
This commit is contained in:
@@ -9830,7 +9830,7 @@ static int TLSX_KeyShareEntry_Parse(const WOLFSSL* ssl, const byte* input,
|
||||
return BUFFER_ERROR;
|
||||
|
||||
if (seenGroups != NULL) {
|
||||
if (*seenGroupsCnt == MAX_KEYSHARE_NAMED_GROUPS) {
|
||||
if (*seenGroupsCnt >= MAX_KEYSHARE_NAMED_GROUPS) {
|
||||
return BAD_KEY_SHARE_DATA;
|
||||
}
|
||||
for (i = 0; i < *seenGroupsCnt; i++) {
|
||||
|
||||
Reference in New Issue
Block a user