Skip to content

Commit 92faa91

Browse files
committed
sniffer: set ssl->curSize before invoking Do* routines
commit 99a99e3 changes DoApplication to use ssl->curSize as the size of the current decrypted record. Fix sniffer code to set this value.
1 parent 213ac1a commit 92faa91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sniffer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5006,6 +5006,7 @@ static const byte* DecryptMessage(WOLFSSL* ssl, const byte* input, word32 sz,
50065006
return NULL;
50075007
}
50085008

5009+
ssl->curSize = sz;
50095010
ssl->keys.encryptSz = sz;
50105011
if (ssl->options.tls1_1 && ssl->specs.cipher_type == block) {
50115012
output += ssl->specs.block_size; /* go past TLSv1.1 IV */

0 commit comments

Comments
 (0)