X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fipv6%2Fdatagram.c;h=99a6eb23378bcc2d3b079ce3bc5ff7efd8e9ff58;hb=37a801c776109dce801875b12525a9eaa12481e6;hp=cc518405b3e1efc29b87aea3cadb4e0c6d60068f;hpb=d344c5e0856ad03278d8700b503762dbc8b86e12;p=powerpc.git diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index cc518405b3..99a6eb2337 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];