Skip to content

Commit

Permalink
Merge pull request #8045 from rizlik/sniffer-fix
Browse files Browse the repository at this point in the history
sniffer: set ssl->curSize before invoking Do* routines
  • Loading branch information
dgarske authored Oct 7, 2024
2 parents c230e10 + 92faa91 commit bf29b68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bf29b68

Please sign in to comment.