src/java.base/share/classes/sun/security/ssl/SSLTransport.java
changeset 51574 ed52ea83f830
parent 50768 68fa3d4026ea
child 53064 103ed9569fc8
equal deleted inserted replaced
51573:3b3685479784 51574:ed52ea83f830
   165             }
   165             }
   166 
   166 
   167             if (plainText == null) {
   167             if (plainText == null) {
   168                 plainText = Plaintext.PLAINTEXT_NULL;
   168                 plainText = Plaintext.PLAINTEXT_NULL;
   169             } else {
   169             } else {
   170                 // File the destination buffers.
   170                 // Fill the destination buffers.
   171                 if (dsts != null && dstsLength > 0 &&
   171                 if ((dsts != null) && (dstsLength > 0) &&
   172                     plainText.contentType == ContentType.APPLICATION_DATA.id) {
   172                         (plainText.contentType ==
       
   173                             ContentType.APPLICATION_DATA.id)) {
   173 
   174 
   174                     ByteBuffer fragment = plainText.fragment;
   175                     ByteBuffer fragment = plainText.fragment;
   175                     int remains = fragment.remaining();
   176                     int remains = fragment.remaining();
   176 
   177 
   177                     // Should have enough room in the destination buffers.
   178                     // Should have enough room in the destination buffers.