summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode')
-rw-r--r--src/com/isode/stroke/tls/java/JSSEContext.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/isode/stroke/tls/java/JSSEContext.java b/src/com/isode/stroke/tls/java/JSSEContext.java
index 52edae1..da8316a 100644
--- a/src/com/isode/stroke/tls/java/JSSEContext.java
+++ b/src/com/isode/stroke/tls/java/JSSEContext.java
@@ -331,6 +331,9 @@ public class JSSEContext extends TLSContext {
/* It consumed some bytes, but perhaps not everything */
unwrapDone = (lastConsumed == bytesToUnwrap);
}
+ // At this stage "lastConsumed" has already been added to
+ // "bytesConsumed"; don't do it again after exiting the while loop
+ lastConsumed = 0;
break;
}
} while (!unwrapDone);