]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: CLUSTERIP: fix memcpy() length typo
authorKOVACS Krisztian <hidden@balabit.hu>
Fri, 2 Sep 2005 00:44:06 +0000 (17:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2005 00:44:06 +0000 (17:44 -0700)
Fix a trivial typo in clusterip_config_init().

Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_CLUSTERIP.c

index 2d05cafec22120ecae24351e31f4a5f17431433a..7d38913754b1a5ca44771248d4f7548f19ad9921 100644 (file)
@@ -144,7 +144,7 @@ clusterip_config_init(struct ipt_clusterip_tgt_info *i, u_int32_t ip,
        memcpy(&c->clustermac, &i->clustermac, ETH_ALEN);
        c->num_total_nodes = i->num_total_nodes;
        c->num_local_nodes = i->num_local_nodes;
-       memcpy(&c->local_nodes, &i->local_nodes, sizeof(&c->local_nodes));
+       memcpy(&c->local_nodes, &i->local_nodes, sizeof(c->local_nodes));
        c->hash_mode = i->hash_mode;
        c->hash_initval = i->hash_initval;
        atomic_set(&c->refcount, 1);