[hipl-commit] [packaging] Rev 3591: possible fix to Maemo segfault

  • From: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 16 Feb 2010 19:40:48 +0200

Committer: Rene Hummen <rene.hummen@xxxxxxxxxxxxxxxxx>
Date: Tue Feb 16 18:40:30 2010 +0100
Revision: 3591
Revision-id: rene.hummen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: packaging

Log:
  possible fix to Maemo segfault

Modified:
  M  lib/core/utils.h

=== modified file 'lib/core/utils.h'
--- lib/core/utils.h    2010-02-10 23:55:24 +0000
+++ lib/core/utils.h    2010-02-16 17:40:30 +0000
@@ -58,7 +58,7 @@
 
 #define IPV6_EQ_IPV4(in6_addr_a, in_addr_b)   \
     (IN6_IS_ADDR_V4MAPPED(in6_addr_a) && \
-     ((in6_addr_a)->s6_addr32[3] == (in_addr_b)->s_addr))
+    (*(const __uint32_t *)(const void *)(&(in6_addr_a)->s6_addr[12]) == 
(in_addr_b)->s_addr))
 
 /**
  * Checks if a uint32_t represents a Local Scope Identifier (LSI).

Other related posts:

  • » [hipl-commit] [packaging] Rev 3591: possible fix to Maemo segfault - Rene Hummen