[hipl-commit] [packaging] Rev 3594: second try to fix segfault

  • From: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 18:17:19 +0200

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).

Other related posts:

  • » [hipl-commit] [packaging] Rev 3594: second try to fix segfault - Rene Hummen