CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: [EMAIL PROTECTED] 2008-01-02 10:02:44
Modified files:
cman/daemon : commands.c
Log message:
totempg_ifaces_get() always copies INTERFACE_MAX addresses
so make sure we allocate enough space for them all.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.55.2.15&r2=1.55.2.16
--- cluster/cman/daemon/commands.c 2007/11/26 17:02:59 1.55.2.15
+++ cluster/cman/daemon/commands.c 2008/01/02 10:02:44 1.55.2.16
@@ -2,7 +2,7 @@
*******************************************************************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
-** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
+** Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
@@ -343,7 +343,7 @@
int addrlen=0;
unsigned int numaddrs=1;
char **status;
- struct totem_ip_address node_ifs[num_interfaces];
+ struct totem_ip_address node_ifs[INTERFACE_MAX];
strcpy(unode->name, node->name);
unode->jointime = node->join_time;
@@ -1150,7 +1150,7 @@
int i;
char *outbuf = *retbuf + offset;
struct cl_get_node_addrs *addrs = (struct cl_get_node_addrs *)outbuf;
- struct totem_ip_address node_ifs[num_interfaces];
+ struct totem_ip_address node_ifs[INTERFACE_MAX];
struct cluster_node *node;
char **status;