瀏覽代碼

[IPV6]: Fix ipv6 fragment ID selection at slow path

Signed-Off-By: Yan Zheng <yanzheng@21cn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Yan Zheng 19 年之前
父節點
當前提交
f36d6ab182
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv6/ip6_output.c

+ 1 - 1
net/ipv6/ip6_output.c

@@ -666,7 +666,7 @@ slow_path:
 		 */
 		 */
 		fh->nexthdr = nexthdr;
 		fh->nexthdr = nexthdr;
 		fh->reserved = 0;
 		fh->reserved = 0;
-		if (frag_id) {
+		if (!frag_id) {
 			ipv6_select_ident(skb, fh);
 			ipv6_select_ident(skb, fh);
 			frag_id = fh->identification;
 			frag_id = fh->identification;
 		} else
 		} else