Signed-off-by: Steven Dake <[email protected]>
---
exec/totemip.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/exec/totemip.c b/exec/totemip.c
index d6bb34a..f3c3d96 100644
--- a/exec/totemip.c
+++ b/exec/totemip.c
@@ -132,8 +132,10 @@ int32_t totemip_is_mcast(struct totem_ip_address *ip_addr)
{
uint32_t addr = 0;
+ memcpy (&addr, ip_addr->addr, sizeof (uint32_t));
+
if (ip_addr->family == AF_INET) {
- addr = ntohl(*(int32_t*)ip_addr->addr);
+ addr = ntohl(addr);
if ((addr >> 28) != 0xE) {
return -1;
}
--
1.7.2.3
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais