minor fix to SSLEngine result status when input buffer is empty JDK-8145252-TLS13-branch
authorapetcher
Fri, 01 Jun 2018 10:07:24 -0400
branchJDK-8145252-TLS13-branch
changeset 56649 50595f26ea8a
parent 56648 88da002507ab
child 56650 6a168579df31
minor fix to SSLEngine result status when input buffer is empty
src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java
--- a/src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java	Thu May 31 17:40:21 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/SSLEngineImpl.java	Fri Jun 01 10:07:24 2018 -0400
@@ -529,7 +529,7 @@
         }
 
         if (srcsRemains == 0) {
-            return new SSLEngineResult(Status.OK, getHandshakeStatus(), 0, 0);
+            return new SSLEngineResult(Status.BUFFER_UNDERFLOW, getHandshakeStatus(), 0, 0);
         }
 
         /*