diff --git a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java index 921e28733..4dfb8e620 100644 --- a/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java +++ b/sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java @@ -1589,9 +1589,7 @@ protected void decode() throws Exception { } else if ((inCipher != null) && (!etmMode)) { // Decrypt the first bytes so we can extract the packet length inCipher.update(decoderBuffer.array(), 0, inCipherSize); - - int blocksCount = inCipherSize / inCipher.getCipherBlockSize(); - inBlocksCount.addAndGet(Math.max(1, blocksCount)); + inBlocksCount.incrementAndGet(); } // Read packet length decoderLength = decoderBuffer.getInt();