public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: master - cman: return the correct length of a message Date: Tue, 26 Aug 2008 09:32:00 -0000 [thread overview] Message-ID: <20080826081802.1698012035B@lists.fedorahosted.org> (raw) 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); } }
reply other threads:[~2008-08-26 8:20 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080826081802.1698012035B@lists.fedorahosted.org \ --to=chrissie@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).