good for merge On Tue, 2010-05-18 at 10:07 +1000, Angus Salkeld wrote: > --- > exec/totemconfig.c | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/exec/totemconfig.c b/exec/totemconfig.c > index 49fed20..9128bdd 100644 > --- a/exec/totemconfig.c > +++ b/exec/totemconfig.c > @@ -421,7 +421,12 @@ int totem_config_validate ( > /* > * Some error checking of parsed data to make sure its valid > */ > - if ((int *)&totem_config->interfaces[i].mcast_addr.addr == 0) { > + > + struct totem_ip_address null_addr; > + memset (&null_addr, 0, sizeof (struct totem_ip_address)); > + > + if (memcmp (&totem_config->interfaces[i].mcast_addr, &null_addr, > + sizeof (struct totem_ip_address)) == 0) { > error_reason = "No multicast address specified"; > goto parse_error; > }
_______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais