Commit 1fa12b3f authored by David S. Miller's avatar David S. Miller

[UDP]: In udp_{v6_}flush_pending_frames, reset up->len too.

parent 3cf50294
...@@ -384,6 +384,7 @@ static void udp_flush_pending_frames(struct sock *sk) ...@@ -384,6 +384,7 @@ static void udp_flush_pending_frames(struct sock *sk)
struct udp_opt *up = udp_sk(sk); struct udp_opt *up = udp_sk(sk);
if (up->pending) { if (up->pending) {
up->len = 0;
up->pending = 0; up->pending = 0;
ip_flush_pending_frames(sk); ip_flush_pending_frames(sk);
} }
......
...@@ -704,6 +704,7 @@ static void udp_v6_flush_pending_frames(struct sock *sk) ...@@ -704,6 +704,7 @@ static void udp_v6_flush_pending_frames(struct sock *sk)
struct udp_opt *up = udp_sk(sk); struct udp_opt *up = udp_sk(sk);
if (up->pending) { if (up->pending) {
up->len = 0;
up->pending = 0; up->pending = 0;
ip6_flush_pending_frames(sk); ip6_flush_pending_frames(sk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment