Explorar el 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 hace 12 años
padre
commit
90f8a68a2b
Se han modificado 1 ficheros con 1 adiciones y 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: