Преглед изворни кода

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

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Ville Nuorvala пре 19 година
родитељ
комит
a305989386
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      net/ipv6/datagram.c

+ 1 - 1
net/ipv6/datagram.c

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