X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Fipv4%2Ftcp_ipv4.c;h=575e19dcc01763ef3fa938dea3ea51995b573163;hb=45caeaa5ac0b4b11784ac6f932c0ad4c6b67cda0;hp=8f3ec1365497a58972d31d419f88b34457b5ae39;hpb=02bb56ddc6711639c549d81c7b9f6d845da243a9;p=linux-2.6-microblaze.git diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 8f3ec1365497..575e19dcc017 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -431,7 +431,8 @@ void tcp_v4_err(struct sk_buff *icmp_skb, u32 info) switch (type) { case ICMP_REDIRECT: - do_redirect(icmp_skb, sk); + if (!sock_owned_by_user(sk)) + do_redirect(icmp_skb, sk); goto out; case ICMP_SOURCE_QUENCH: /* Just silently ignore these. */