mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 20:10:49 +02:00
fix to sanity check on importing raw session key info
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user