---
 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;
                }
-- 
1.6.6.1

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to