--- a/src/java.base/share/classes/sun/security/ssl/SSLTransport.java Tue Aug 21 13:44:59 2018 +0100
+++ b/src/java.base/share/classes/sun/security/ssl/SSLTransport.java Tue Aug 21 11:30:48 2018 -0700
@@ -167,9 +167,10 @@
if (plainText == null) {
plainText = Plaintext.PLAINTEXT_NULL;
} else {
- // File the destination buffers.
- if (dsts != null && dstsLength > 0 &&
- plainText.contentType == ContentType.APPLICATION_DATA.id) {
+ // Fill the destination buffers.
+ if ((dsts != null) && (dstsLength > 0) &&
+ (plainText.contentType ==
+ ContentType.APPLICATION_DATA.id)) {
ByteBuffer fragment = plainText.fragment;
int remains = fragment.remaining();