Commit 32f947c4 authored by Ville Nuorvala's avatar Ville Nuorvala Committed by Chris Wright

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

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0527c109
...@@ -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