浏览代码

netfilter: ipset: fix incorret comparison in hash_netnet4_data_equal()

Both sides of the comparison are the same, looks like a cut-and-paste error.

Spotted by Coverity.

Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Dave Jones 11 年之前
父节点
当前提交
b49faea765
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/netfilter/ipset/ip_set_hash_netnet.c

+ 1 - 1
net/netfilter/ipset/ip_set_hash_netnet.c

@@ -59,7 +59,7 @@ hash_netnet4_data_equal(const struct hash_netnet4_elem *ip1,
 		     u32 *multi)
 {
 	return ip1->ipcmp == ip2->ipcmp &&
-	       ip2->ccmp == ip2->ccmp;
+	       ip1->ccmp == ip2->ccmp;
 }
 
 static inline int