From beb82b3bcb1a8efb6ac96f1389241e9259b789f3 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 6 Jul 2004 18:26:11 +0000 Subject: [PATCH] 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 --- exec/clm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/clm.c b/exec/clm.c index 7d68e171..9bafe1f0 100644 --- a/exec/clm.c +++ b/exec/clm.c @@ -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