From 9d7160d491efedde89a7db6756c01ad3c23c4315 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 10 Sep 2021 09:43:26 -0500 Subject: [PATCH] Issue #6072 - changes from review Signed-off-by: Joakim Erdfelt --- .../src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java index b9287260171b..0202eec864a3 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java @@ -743,7 +743,7 @@ else if (_decryptedInput == null) case BUFFER_UNDERFLOW: // Continue if we can compact? if (BufferUtil.compact(_encryptedInput)) - continue; + break decryption; // to cause fill again. // Are we out of space? if (BufferUtil.space(_encryptedInput) == 0) @@ -753,6 +753,7 @@ else if (_decryptedInput == null) } _underFlown = true; + // Fall through to OK case. case OK: { if (unwrapHandshakeStatus == HandshakeStatus.FINISHED)