Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2015-12-18 10:44:21 +0000
committerEike Stepper2015-12-18 10:44:21 +0000
commit22614ff2b7d0de4fd70c1d7ba0fc498a645fedd2 (patch)
treeae271c45949e7e1d6445ee26f8335746bee3e521 /plugins/org.eclipse.net4j.tcp
parentb66cb8c692f7d0bde4a629a2b06fd98427e63a3a (diff)
downloadcdo-22614ff2b7d0de4fd70c1d7ba0fc498a645fedd2.tar.gz
cdo-22614ff2b7d0de4fd70c1d7ba0fc498a645fedd2.tar.xz
cdo-22614ff2b7d0de4fd70c1d7ba0fc498a645fedd2.zip
[484649] IllegalArgumentException in Buffer.limit()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=484649
Diffstat (limited to 'plugins/org.eclipse.net4j.tcp')
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/ssl/SSLBuffer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/ssl/SSLBuffer.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/ssl/SSLBuffer.java
index 4acffce8e3..30e145259f 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/ssl/SSLBuffer.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/ssl/SSLBuffer.java
@@ -90,7 +90,7 @@ public class SSLBuffer extends Buffer
payloadSize = (short)-payloadSize;
}
- payloadSize -= FLAGS_OFFSET;
+ payloadSize -= MAKE_PAYLOAD_SIZE_NON_ZERO;
byteBuffer.position(IBuffer.HEADER_SIZE);
setState(BufferState.READING_HEADER);
@@ -149,7 +149,7 @@ public class SSLBuffer extends Buffer
throw new IllegalStateException("channelID == NO_CHANNEL"); //$NON-NLS-1$
}
- int payloadSize = byteBuffer.position() - IBuffer.HEADER_SIZE + FLAGS_OFFSET;
+ int payloadSize = byteBuffer.position() - IBuffer.HEADER_SIZE + MAKE_PAYLOAD_SIZE_NON_ZERO;
if (isEOS())
{
payloadSize = -payloadSize;

Back to the top