]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_cluster: fix inversion in the cluster match
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 6 Feb 2011 20:34:33 +0000 (21:34 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 6 Feb 2011 20:34:33 +0000 (21:34 +0100)
commite76ec99b48745b0e3c8aecbc91ed5bba186cf25f
treea0c4e3dc52f5f21753a9205fee9e743eb49cd65d
parent9ee2a9fe2f74b616da34878104bd1ff406534ad1
libxt_cluster: fix inversion in the cluster match

In libxt_cluster.c, we use:

info->flags |= (1 << XT_CLUSTER_F_INV);

but we should use instead:

info->flags |= XT_CLUSTER_F_INV;

since the definition of XT_CLUSTER_F_INV is:

enum xt_cluster_flags {
        XT_CLUSTER_F_INV        = (1 << 0)
};

This fixes the inversion in the cluster match.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_cluster.c