Update the decrypted packet and byte counts.

This commit is contained in:
John Safranek
2019-07-11 10:28:04 -05:00
parent dd9635d8ff
commit 743a6ab829

View File

@@ -3763,6 +3763,12 @@ doMessage:
SetError(MEMORY_STR, error, session, FATAL_ERROR_STATE);
return -1;
}
#ifdef WOLFSSL_SNIFFER_STATS
LOCK_STAT();
NOLOCK_INC_STAT(SnifferStats.sslDecryptedPackets);
NOLOCK_ADD_TO_STAT(SnifferStats.sslDecryptedBytes, sslBytes);
UNLOCK_STAT();
#endif
sslFrame = DecryptMessage(ssl, sslFrame, rhSize,
ssl->buffers.outputBuffer.buffer, &errCode,
&ivAdvance);