]> err.no Git - linux-2.6/commitdiff
[IPV6]: Fix xfrm tunnel oops with large packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 May 2005 20:11:07 +0000 (13:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2005 20:11:07 +0000 (13:11 -0700)
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_output.c

index 601a148f60f39af5255d651eab7a1f8d23a35a57..6b9867717d117a6686edb9424ddbfb6e7a21aa05 100644 (file)
@@ -84,6 +84,7 @@ static int xfrm6_tunnel_check_size(struct sk_buff *skb)
                mtu = IPV6_MIN_MTU;
 
        if (skb->len > mtu) {
+               skb->dev = dst->dev;
                icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev);
                ret = -EMSGSIZE;
        }