zero outpack to prevent a potential information leak from
IPv6addr into the icmp packets that it sends.

Index: lha-STABLE_1_2-ipv6addr/heartbeat/resource.d/IPv6addr.c
===================================================================
--- lha-STABLE_1_2-ipv6addr.orig/heartbeat/resource.d/IPv6addr.c        
2007-04-19 12:39:10.000000000 +0900
+++ lha-STABLE_1_2-ipv6addr/heartbeat/resource.d/IPv6addr.c     2007-04-19 
12:39:22.000000000 +0900
@@ -573,6 +573,7 @@ is_addr6_available(struct in6_addr* addr
        icmph.icmp6_sequence = htons(0);
        icmph.icmp6_identifier = 0;
 
+       memset(&outpack, 0, sizeof(outpack));
        memcpy(&outpack, &icmph, sizeof(icmph));
 
        memset(&addr, 0, sizeof(struct sockaddr_in6));

-- 

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to