aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-03-22 20:43:02 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-03-22 20:43:02 +0000
commitafbd0ce7676f0129e881ac3b6e5e7be04b4f5fc4 (patch)
tree72e2eca0d5299d9bab83a8ba8b6bc67f2ded2742
parent3519ba1d5ce624e509ce72cca07f0e58776fcff0 (diff)
parent09bc6dc1149d6404c62f3461eba4b8bdd4a918f2 (diff)
downloadconscrypt-oreo-m4-s9-release.tar.gz
Change-Id: I88bf106eb2bfbe9129a784e6352d66c864dd0803
-rw-r--r--common/src/main/java/org/conscrypt/ConscryptEngine.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/src/main/java/org/conscrypt/ConscryptEngine.java b/common/src/main/java/org/conscrypt/ConscryptEngine.java
index 6e1a929d..f725e363 100644
--- a/common/src/main/java/org/conscrypt/ConscryptEngine.java
+++ b/common/src/main/java/org/conscrypt/ConscryptEngine.java
@@ -1228,7 +1228,7 @@ final class ConscryptEngine extends SSLEngine implements NativeCrypto.SSLHandsha
}
} else {
// The heap method will update the position on the dst buffer automatically.
- bytesRead = readEncryptedDataHeap(dst, pos, len);
+ bytesRead = readEncryptedDataHeap(dst, len);
}
}
@@ -1242,7 +1242,7 @@ final class ConscryptEngine extends SSLEngine implements NativeCrypto.SSLHandsha
return networkBio.readDirectByteBuffer(directByteBufferAddress(dst, pos), len);
}
- private int readEncryptedDataHeap(ByteBuffer dst, int pos, int len) throws IOException {
+ private int readEncryptedDataHeap(ByteBuffer dst, int len) throws IOException {
AllocatedBuffer allocatedBuffer = null;
try {
final ByteBuffer buffer;
@@ -1257,7 +1257,7 @@ final class ConscryptEngine extends SSLEngine implements NativeCrypto.SSLHandsha
}
int bytesToRead = min(len, buffer.remaining());
- int bytesRead = readEncryptedDataDirect(buffer, pos, bytesToRead);
+ int bytesRead = readEncryptedDataDirect(buffer, 0, bytesToRead);
if (bytesRead > 0) {
buffer.position(bytesRead);
buffer.flip();