summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2013-09-20 10:20:28 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-09-24 14:15:49 (GMT)
commit1a462d189280b560bd84af1407e4d848e262b3b3 (patch)
tree67d0934fb3e4cad4f9219c7e033d9b0e7856d18b /net/ipv4
parent9fe34f5d920b183ec063550e0f4ec854aa373316 (diff)
downloadlinux-1a462d189280b560bd84af1407e4d848e262b3b3.tar.xz
net: udp: do not report ICMP redirects to user space
Redirect isn't an error condition, it should leave 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/ipv4')
-rw-r--r--net/ipv4/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 74d2c95..0ca44df 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -658,7 +658,7 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable)
break;
case ICMP_REDIRECT:
ipv4_sk_redirect(skb, sk);
- break;
+ goto out;
}
/*