Browse Source

Use proper totem_ip_address size in memset

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse 12 năm trước cách đây
mục cha
commit
90f8a68a2b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      exec/totemconfig.c

+ 1 - 1
exec/totemconfig.c

@@ -215,7 +215,7 @@ static int get_cluster_mcast_addr (
 	}
 	}
 
 
 	clusterid = generate_cluster_id(cluster_name) + ringnumber;
 	clusterid = generate_cluster_id(cluster_name) + ringnumber;
-	memset (res, 0, sizeof(res));
+	memset (res, 0, sizeof(*res));
 
 
 	switch (bindnet->family) {
 	switch (bindnet->family) {
 	case AF_INET:
 	case AF_INET: