]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/xfrm/xfrm_input.c
[IPSEC]: Add xfrm_input_state helper
[linux-2.6-omap-h63xx.git] / net / xfrm / xfrm_input.c
index 8b2b1b59133ec20e28e96dc83f1499aca6eafe31..8624cbdb2a1eea89627c3ee28e56b51c50cc87c8 100644 (file)
@@ -109,7 +109,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
        /* A negative encap_type indicates async resumption. */
        if (encap_type < 0) {
                async = 1;
-               x = skb->sp->xvec[skb->sp->len - 1];
+               x = xfrm_input_state(skb);
                seq = XFRM_SKB_CB(skb)->seq;
                goto resume;
        }