From 519616de0c137cfdc39a6db9ab2d95b32244cdc9 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 28 Aug 2009 18:20:14 +0000 Subject: [PATCH] Fix off by one calculation error resulting in assertion. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2398 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totempg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/totempg.c b/exec/totempg.c index 3e05784e..77f532b1 100644 --- a/exec/totempg.c +++ b/exec/totempg.c @@ -942,9 +942,9 @@ static int byte_count_send_ok ( avail = totemmrp_avail (); - msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16)); + msg_count = (byte_count / (totempg_totem_config->net_mtu - sizeof (struct totempg_mcast) - 16)) + 1; - return (avail > msg_count); + return (avail >= msg_count); } static int send_reserve (