# HG changeset patch # User apetcher # Date 1527862044 14400 # Node ID 50595f26ea8a9a84c9d3b7cfa38994e44fc27ead # Parent 88da002507ab7b882e883f4a3416ffcd1e77f2a1 minor fix to SSLEngine result status when input buffer is empty diff -r 88da002507ab -r 50595f26ea8a 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); } /*