mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-04 17:21:27 +00:00
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
This commit is contained in:
parent
21fedb2495
commit
519616de0c
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user