X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv6%2Fdatagram.c;h=99a6eb23378bcc2d3b079ce3bc5ff7efd8e9ff58;hb=99532559dc7a8e686b2cef14c780a7ad5dbd4a31;hp=cc518405b3e1efc29b87aea3cadb4e0c6d60068f;hpb=529980c8b0b04e8a3f6606cdc156f1f81a5d68cd;p=linux-2.6-omap-h63xx.git diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index cc518405b3e..99a6eb23378 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c @@ -13,6 +13,7 @@ * 2 of the License, or (at your option) any later version. */ +#include #include #include #include @@ -437,7 +438,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];