Skip to content

Commit

Permalink
Fix Heap Buffer write bug (#45)
Browse files Browse the repository at this point in the history
Fix in the OpenSSLSocketEngineImpl which is a SSLSocket implemented
using an SSLEngine.
  • Loading branch information
kpayson64 authored and kruton committed Jan 13, 2017
1 parent 543c3bb commit 6aee9d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private void write(ByteBuffer buffer) throws IOException {
}
} else {
// Target is a heap buffer.
socketOutputStream.write(target.array(), 0, target.position());
socketOutputStream.write(target.array(), 0, target.limit());
}
if (engineResult.getHandshakeStatus() == HandshakeStatus.FINISHED) {
completeHandshake();
Expand Down

0 comments on commit 6aee9d8

Please sign in to comment.