diff options
author | Ville Nuorvala <vnuorval@tcs.hut.fi> | 2005-11-20 12:21:59 +0900 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2005-11-20 12:21:59 +0900 |
commit | a305989386e402f48b216786a5c8cf440b33bdad (patch) | |
tree | a61fb5850f3ee439a1848988cb81923939dc71e7 /net | |
parent | 8b8aa4b5a66ecf90f0a7033c8cbc49cfd97c4347 (diff) | |
download | kernel-crypto-a305989386e402f48b216786a5c8cf440b33bdad.tar.gz kernel-crypto-a305989386e402f48b216786a5c8cf440b33bdad.tar.xz kernel-crypto-a305989386e402f48b216786a5c8cf440b33bdad.zip |
[IPV6]: Fix calculation of AH length during filling ancillary data.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/datagram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index cc518405b3e..c4a3a993acb 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c @@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) break; case IPPROTO_AH: nexthdr = ptr[0]; - len = (ptr[1] + 1) << 2; + len = (ptr[1] + 2) << 2; break; default: nexthdr = ptr[0]; |