Skip to content

Commit

Permalink
net:dccp: do not report ICMP redirects to user space
Browse files Browse the repository at this point in the history
DCCP shouldn't be setting sk_err on redirects as it
isn't an error condition. it should be doing exactly
what tcp is doing and leaving the error handler without
touching the socket.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Duan Jiong authored and David S. Miller committed Sep 18, 2013
1 parent 48a3056 commit bd784a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/dccp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,

if (dst)
dst->ops->redirect(dst, sk, skb);
goto out;
}

if (type == ICMPV6_PKT_TOOBIG) {
Expand Down

0 comments on commit bd784a1

Please sign in to comment.