This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch 2.1.X
in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.1.X by this push:
new 4f8dfbb14 Fix for DIRMINA-1181
4f8dfbb14 is described below
commit 4f8dfbb1493d62d29cffe72c2d04d41cd290d3d9
Author: emmanuel lecharny <[email protected]>
AuthorDate: Fri Sep 27 11:43:37 2024 +0200
Fix for DIRMINA-1181
---
.../src/main/java/org/apache/mina/core/buffer/AbstractIoBuffer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/mina-core/src/main/java/org/apache/mina/core/buffer/AbstractIoBuffer.java
b/mina-core/src/main/java/org/apache/mina/core/buffer/AbstractIoBuffer.java
index 5fdaad5d9..ce14f950c 100644
--- a/mina-core/src/main/java/org/apache/mina/core/buffer/AbstractIoBuffer.java
+++ b/mina-core/src/main/java/org/apache/mina/core/buffer/AbstractIoBuffer.java
@@ -1615,8 +1615,10 @@ public abstract class AbstractIoBuffer extends IoBuffer {
continue;
}
+ i++;
+
if (wasZero) {
- end = i - 1;
+ end = i - 2;
break;
}
}