Committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx> Date: Wed Feb 17 17:16:56 2010 +0100 Revision: 3594 Revision-id: rene.hummen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: packaging Log: second try to fix segfault Modified: M lib/core/utils.h === modified file 'lib/core/utils.h' --- lib/core/utils.h 2010-02-17 15:37:02 +0000 +++ lib/core/utils.h 2010-02-17 16:16:56 +0000 @@ -58,7 +58,7 @@ #define IPV6_EQ_IPV4(in6_addr_a, in_addr_b) \ (IN6_IS_ADDR_V4MAPPED(in6_addr_a) && \ - (*(const __uint32_t *)(const void *)(&(in6_addr_a)->s6_addr[12]) == (in_addr_b)->s_addr)) + (((__const uint32_t *) (in6_addr_a))[3] == (in_addr_b)->s_addr)) /** * Checks if a uint32_t represents a Local Scope Identifier (LSI).