Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 080324c3 authored by Andre Tomt's avatar Andre Tomt Committed by David S. Miller
Browse files

net/tls: Fix connection stall on partial tls record



In the case of writing a partial tls record we forgot to clear the
ctx->in_tcp_sendpages flag, causing some connections to stall.

Fixes: c212d2c7 ("net/tls: Don't recursively call push_record during tls_write_space callbacks")
Signed-off-by: default avatarAndre Tomt <andre@tomt.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 53bc017f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
			offset -= sg->offset;
			ctx->partially_sent_offset = offset;
			ctx->partially_sent_record = (void *)sg;
			ctx->in_tcp_sendpages = false;
			return ret;
		}