]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] Fix extra dst release when ip_options_echo fails
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 4 Feb 2006 10:29:45 +0000 (02:29 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 6 Feb 2006 23:36:33 +0000 (15:36 -0800)
When two ip_route_output_key lookups in icmp_send were combined I
forgot to change the error path for ip_options_echo to not drop the
dst reference since it now sits before the dst lookup.  To fix it we
simply jump past the ip_rt_put call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv4/icmp.c

index 92e23b2ad4d211c810341bc74389bc9ce32381cb..84de934dd1ed99c80b35da81b846a82a0dc779e1 100644 (file)
@@ -524,7 +524,7 @@ void icmp_send(struct sk_buff *skb_in, int type, int code, u32 info)
                                          iph->tos;
 
        if (ip_options_echo(&icmp_param.replyopts, skb_in))
-               goto ende;
+               goto out_unlock;
 
 
        /*