]> err.no Git - linux-2.6/blobdiff - net/ipv4/xfrm4_output.c
Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block
[linux-2.6] / net / ipv4 / xfrm4_output.c
index a4edd666318b0f85bb9efb166df3512f78bce8d5..c4a7156962bd58797d93b7c21051bcc797c98de9 100644 (file)
@@ -47,7 +47,7 @@ static inline int xfrm4_output_one(struct sk_buff *skb)
        struct iphdr *iph;
        int err;
 
-       if (x->props.mode == XFRM_MODE_TUNNEL) {
+       if (x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL) {
                err = xfrm4_tunnel_check_size(skb);
                if (err)
                        goto error_nolock;