diff options
| author | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2003-03-23 07:23:50 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-03-23 07:23:50 -0800 |
| commit | 4759dd67a7db3d0c77dc1c6ae21197e62aac62ce (patch) | |
| tree | cdcfeeac99498a74430365e2efe46e887b7b65a5 | |
| parent | a466d7eea58642d469c11ddc0ae9c02ab0f51723 (diff) | |
[IPSEC]: Fix bug in xfrm_parse_spi()
| -rw-r--r-- | net/ipv4/xfrm_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
