提交 a3059893 编写于 作者: V Ville Nuorvala 提交者: YOSHIFUJI Hideaki

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

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
上级 8b8aa4b5
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册