cluster/cman/daemon commands.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: pcaulfield at sourceware.org 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.
cman/daemon/commands.c +3 -3
@@ -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;