Skip to content

Commit edf0c4f

Browse files
authored
Merge pull request #3624 from augi/patch-1
fix: GHSA-rrw2-px9j-qffj remediation backported to 2.5.x
2 parents 4116544 + 92a5578 commit edf0c4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

io/src/main/scala/fs2/io/tls/TLSEngine.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ private[tls] object TLSEngine {
218218
else
219219
binding.read(engine.getSession.getPacketBufferSize, timeout).flatMap {
220220
case Some(c) => unwrapBuffer.input(c) >> unwrapHandshake(timeout)
221-
case None =>
222-
unwrapBuffer.inputRemains.flatMap(x =>
223-
if (x > 0) Applicative[F].unit else stopUnwrap
224-
)
221+
case None => stopUnwrap
225222
}
226223
}
227224
case SSLEngineResult.HandshakeStatus.NEED_UNWRAP_AGAIN =>

0 commit comments

Comments
 (0)