mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-25 09:13:26 +00:00
Wrong value being used to determine leave list, resulting in
a memcpy with a -1 value in some cases, and the incorrect memcpy in other cases. (Logical change 1.20) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@49 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
7c1c23ff33
commit
beb82b3bcb
@ -286,7 +286,7 @@ static void libraryNotificationLeave (SaClmNodeIdT *nodes, int nodes_entries)
|
||||
if (nodes[i] == clusterNodes[j].nodeId) {
|
||||
clusterNodeEntries -= 1;
|
||||
memcpy (&clusterNodes[j], &clusterNodes[j + 1],
|
||||
(clusterNodeEntries - i) * sizeof (SaClmClusterNodeT));
|
||||
(clusterNodeEntries - j) * sizeof (SaClmClusterNodeT));
|
||||
} else {
|
||||
/*
|
||||
* next clusterNode entry
|
||||
|
Loading…
Reference in New Issue
Block a user