Explorar o código

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 %!s(int64=12) %!d(string=hai) anos
pai
achega
90f8a68a2b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
-	memset (res, 0, sizeof(res));
+	memset (res, 0, sizeof(*res));
 
 	switch (bindnet->family) {
 	case AF_INET: