]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv6/xfrm6_input.c
[IPSEC]: Use the correct family for input state lookup
[linux-2.6-omap-h63xx.git] / net / ipv6 / xfrm6_input.c
index e2c3efd2579d65a9a2cfc75fba5545286a7e733b..74f3aacebb5e695430bfb05ba0f13ed105af9e57 100644 (file)
@@ -23,6 +23,7 @@ int xfrm6_extract_input(struct xfrm_state *x, struct sk_buff *skb)
 
 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi)
 {
+       XFRM_SPI_SKB_CB(skb)->family = AF_INET6;
        XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr);
        return xfrm_input(skb, nexthdr, spi, 0);
 }