From 92faa915e417c3be6a227c292e14b6234ae83aa0 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Mon, 7 Oct 2024 08:53:00 +0000 Subject: [PATCH] sniffer: set ssl->curSize before invoking Do* routines commit 99a99e3d6e470c6eecb536d18f4042f6433afe93 changes DoApplication to use ssl->curSize as the size of the current decrypted record. Fix sniffer code to set this value. --- src/sniffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sniffer.c b/src/sniffer.c index 7be98cdef0..d64e9099a1 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -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 */