From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12808 invoked by alias); 26 Aug 2008 08:20:59 -0000 Received: (qmail 12793 invoked by alias); 26 Aug 2008 08:20:58 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_66,KAM_MX,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on bastion.fedora.phx.redhat.com X-Spam-Level: Subject: master - cman: return the correct length of a message To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7ae1e7b875e74c7161b227303c099efa4cd00b05 X-Git-Newrev: d35b3e40cb7d76d722b119ea9aa6095248aa1424 From: Christine Caulfield Message-Id: <20080826081802.1698012035B@lists.fedorahosted.org> Date: Tue, 26 Aug 2008 09:32:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00307.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d35b3e40cb7d76d722b119ea9aa6095248aa1424 Commit: d35b3e40cb7d76d722b119ea9aa6095248aa1424 Parent: 7ae1e7b875e74c7161b227303c099efa4cd00b05 Author: Christine Caulfield AuthorDate: Tue Aug 26 09:16:38 2008 +0100 Committer: Christine Caulfield 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 --- 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); } }