This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / ipv6 / ah6.c
index 185092c..bb7ee1a 100644 (file)
@@ -163,11 +163,15 @@ int ah6_output(struct sk_buff **pskb)
        }
 
        spin_lock_bh(&x->lock);
-       err = xfrm_check_output(x, *pskb, AF_INET6);
+       err = xfrm_state_check(x, *pskb);
        if (err)
                goto error;
 
        if (x->props.mode) {
+               err = xfrm6_tunnel_check_size(*pskb);
+               if (err)
+                       goto error;
+
                iph = (*pskb)->nh.ipv6h;
                (*pskb)->nh.ipv6h = (struct ipv6hdr*)skb_push(*pskb, x->props.header_len);
                (*pskb)->nh.ipv6h->version = 6;