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:
Steven Dake 2004-07-06 18:26:11 +00:00
parent 7c1c23ff33
commit beb82b3bcb

View File

@ -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