Merge pull request #8045 from rizlik/sniffer-fix

sniffer: set ssl->curSize before invoking Do* routines
This commit is contained in:
David Garske
2024-10-07 07:38:27 -07:00
committed by GitHub

View File

@@ -5006,6 +5006,7 @@ static const byte* DecryptMessage(WOLFSSL* ssl, const byte* input, word32 sz,
return NULL;
}
ssl->curSize = sz;
ssl->keys.encryptSz = sz;
if (ssl->options.tls1_1 && ssl->specs.cipher_type == block) {
output += ssl->specs.block_size; /* go past TLSv1.1 IV */