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

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
Ville Nuorvala 2005-11-20 12:21:59 +09:00 committed by YOSHIFUJI Hideaki
parent 8b8aa4b5a6
commit a305989386
1 changed files with 1 additions and 1 deletions

View File

@ -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];