Commit a3059893 authored by Ville Nuorvala's avatar Ville Nuorvala Committed by YOSHIFUJI Hideaki

[IPV6]: Fix calculation of AH length during filling ancillary data.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent 8b8aa4b5
...@@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) ...@@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
break; break;
case IPPROTO_AH: case IPPROTO_AH:
nexthdr = ptr[0]; nexthdr = ptr[0];
len = (ptr[1] + 1) << 2; len = (ptr[1] + 2) << 2;
break; break;
default: default:
nexthdr = ptr[0]; nexthdr = ptr[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment