public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* master - cman: return the correct length of a message
@ 2008-08-26 9:32 Christine Caulfield
0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2008-08-26 9:32 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d35b3e40cb7d76d722b119ea9aa6095248aa1424
Commit: d35b3e40cb7d76d722b119ea9aa6095248aa1424
Parent: 7ae1e7b875e74c7161b227303c099efa4cd00b05
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Tue Aug 26 09:16:38 2008 +0100
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Tue Aug 26 09:16:38 2008 +0100
cman: return the correct length of a message
When I converted to corosync somehow the length of the header
didn't get subtracted from the total message length as it
was passed down the stack. This fixes that.
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/daemon/ais.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/daemon/ais.c b/cman/daemon/ais.c
index 87d2e97..0c1fe99 100644
--- a/cman/daemon/ais.c
+++ b/cman/daemon/ais.c
@@ -243,7 +243,7 @@ static void cman_deliver_fn(unsigned int nodeid, struct iovec *iovec, int iov_le
header->tgtid == 0) {
send_to_userport(header->srcport, header->tgtport,
header->srcid, header->tgtid,
- buf + sizeof(struct cl_protheader), iovec->iov_len,
+ buf + sizeof(struct cl_protheader), iovec->iov_len - sizeof(struct cl_protheader),
endian_conversion_required);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-26 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-26 9:32 master - cman: return the correct length of a message Christine Caulfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).