Browse Source

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

Mark Haverkamp 21 years ago
parent
commit
5f1e727245
1 changed files with 2 additions and 0 deletions
  1. 2 0
      exec/main.c

+ 2 - 0
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);
 }