Message ID | 20240113003258.67899-2-john.fastabend@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | dc9dfc8dc629e42f2234e3327b75324ffc752bc9 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | tls fixes for SPLICE with more hint | expand |
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index e37b4d2e2acd..31e8a94dfc11 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -1052,7 +1052,11 @@ static int tls_sw_sendmsg_locked(struct sock *sk, struct msghdr *msg, if (ret < 0) goto send_end; tls_ctx->pending_open_record_frags = true; - if (full_record || eor || sk_msg_full(msg_pl)) + + if (sk_msg_full(msg_pl)) + full_record = true; + + if (full_record || eor) goto copied; continue; }