summaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv6.c
diff options
context:
space:
mode:
authorDuan Jiong2013-09-18 14:03:27 +0200
committerDavid S. Miller2013-09-18 18:33:44 +0200
commitbd784a140712fd06674f2240eecfc4ccae421129 (patch)
tree87b1ff281c60f05c7dad3c25ec3b4907090c31db /net/dccp/ipv6.c
parentcnic: Fix crash in cnic_bnx2x_service_kcq() (diff)
downloadkernel-qcow2-linux-bd784a140712fd06674f2240eecfc4ccae421129.tar.gz
kernel-qcow2-linux-bd784a140712fd06674f2240eecfc4ccae421129.tar.xz
kernel-qcow2-linux-bd784a140712fd06674f2240eecfc4ccae421129.zip
net:dccp: do not report ICMP redirects to user space
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>
Diffstat (limited to 'net/dccp/ipv6.c')
-rw-r--r--net/dccp/ipv6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c
index 9c61f9c02fdb..6cf9f7782ad4 100644
--- a/net/dccp/ipv6.c
+++ b/net/dccp/ipv6.c
@@ -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) {