net:dccp: do not report ICMP redirects to user space
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Wed, 18 Sep 2013 12:03:27 +0000 (20:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Sep 2013 16:33:44 +0000 (12:33 -0400)
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>
net/dccp/ipv6.c

index 9c61f9c02fdb81df0f87f62994ac13330631c59a..6cf9f7782ad4238208173f390369b5fc4cc75e2b 100644 (file)
@@ -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) {