From: Fabio M. Di Nitto Date: Tue, 7 Feb 2012 09:25:26 +0000 (+0100) Subject: votequorum: fix possible memory corruption X-Git-Tag: v1.99.3~22 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e3ba920307005d6ce48dfc2ca17a20406f994783;p=mirror_corosync.git votequorum: fix possible memory corruption nodeid = 0 is a valide nodeid and node associated with it should not be freed Signed-off-by: Fabio M. Di Nitto Reviewed-by: Steven Dake --- diff --git a/exec/votequorum.c b/exec/votequorum.c index c03d3f3b..fbc91645 100644 --- a/exec/votequorum.c +++ b/exec/votequorum.c @@ -1118,10 +1118,6 @@ static void message_handler_req_exec_votequorum_nodeinfo ( recalculate_quorum(allow_downgrade, by_node); } - if (!nodeid) { - free(node); - } - if ((wait_for_all) && (!req_exec_quorum_nodeinfo->wait_for_all_status) && (req_exec_quorum_nodeinfo->quorate)) {