]> err.no Git - linux-2.6/commitdiff
[IPV6]: Fix calculation of AH length during filling ancillary data.
authorVille Nuorvala <vnuorval@tcs.hut.fi>
Sun, 20 Nov 2005 03:21:59 +0000 (12:21 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Sun, 20 Nov 2005 03:21:59 +0000 (12:21 +0900)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/datagram.c

index cc518405b3e1efc29b87aea3cadb4e0c6d60068f..c4a3a993acb7ba5945f422bfa27c7b97d45376e0 100644 (file)
@@ -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];