]> git.proxmox.com Git - mirror_corosync.git/commitdiff
votequorum: fix possible memory corruption
authorFabio M. Di Nitto <fdinitto@redhat.com>
Tue, 7 Feb 2012 09:25:26 +0000 (10:25 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Thu, 9 Feb 2012 15:49:25 +0000 (16:49 +0100)
nodeid = 0 is a valide nodeid and node associated with it should
not be freed

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
exec/votequorum.c

index c03d3f3b7fcaffc25aea6f0dffacf0c8fc4bc35e..fbc9164551b0909fcc5b3d76b528da8580ed518b 100644 (file)
@@ -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)) {