Skip to content

Commit

Permalink
[IPV6]: Fix calculation of AH length during filling ancillary data.
Browse files Browse the repository at this point in the history
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
  • Loading branch information
Ville Nuorvala authored and YOSHIFUJI Hideaki committed Nov 20, 2005
1 parent 8b8aa4b commit a305989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/datagram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a305989

Please sign in to comment.