From 5f1e7272452f30dd81e2e8942ebd60c8cfab8f3b Mon Sep 17 00:00:00 2001 From: Mark Haverkamp Date: Wed, 6 Apr 2005 19:37:30 +0000 Subject: [PATCH] Make sure that the message count in the message matches the actual length of the message. (Logical change 1.170) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@578 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec/main.c b/exec/main.c index 49031378..865f6cfa 100644 --- a/exec/main.c +++ b/exec/main.c @@ -739,6 +739,8 @@ static void deliver_fn ( header->size = swab32 (header->size); } + assert(iovec->iov_len == header->size); + res = aisexec_handler_fns[header->id](header, source_addr, endian_conversion_required); }