From 4759dd67a7db3d0c77dc1c6ae21197e62aac62ce Mon Sep 17 00:00:00 2001 From: Hideaki Yoshifuji Date: Sun, 23 Mar 2003 07:23:50 -0800 Subject: [IPSEC]: Fix bug in xfrm_parse_spi() --- net/ipv4/xfrm_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/xfrm_input.c b/net/ipv4/xfrm_input.c index 71fac0bca4e7..a64b19a5c09c 100644 --- a/net/ipv4/xfrm_input.c +++ b/net/ipv4/xfrm_input.c @@ -24,7 +24,7 @@ int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, u32 *spi, u32 *seq) { int offset, offset_seq; - switch (skb->nh.iph->protocol) { + switch (nexthdr) { case IPPROTO_AH: offset = offsetof(struct ip_auth_hdr, spi); offset_seq = offsetof(struct ip_auth_hdr, seq_no); -- cgit v1.2.3