Commit 4d55604e authored by Eric Dumazet's avatar Eric Dumazet Committed by Stefan Bader

dccp: do not leak jiffies on the wire

BugLink: https://bugs.launchpad.net/bugs/1852110

[ Upstream commit 3d1e5039 ]

For some reason I missed the case of DCCP passive
flows in my previous patch.

Fixes: a904a069 ("inet: stop leaking jiffies on the wire")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatarThiemo Nagel <tnagel@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 31d94d26
......@@ -417,7 +417,7 @@ struct sock *dccp_v4_request_recv_sock(const struct sock *sk,
RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt));
newinet->mc_index = inet_iif(skb);
newinet->mc_ttl = ip_hdr(skb)->ttl;
newinet->inet_id = jiffies;
newinet->inet_id = prandom_u32();
if (dst == NULL && (dst = inet_csk_route_child_sock(sk, newsk, req)) == NULL)
goto put_and_exit;
......
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