fix to sanity check on importing raw session key info

This commit is contained in:
JacobBarthelmeh
2026-03-13 15:32:46 -06:00
parent aa9ee8b4fa
commit d36f7a2b99
+1 -1
View File
@@ -1169,7 +1169,7 @@ static int ImportKeyState(WOLFSSL* ssl, const byte* exp, word32 len, byte ver,
XMEMCPY(keys->server_write_MAC_secret, exp + idx, sz); idx += sz;
}
#else
if (sz + idx > len) {
if ((sz * 2) + idx > len) {
return BUFFER_E;
}
idx += sz; idx += sz;