Parcourir la source

Merge trunk revision 2650:
r2650 | sdake | 2010-01-30 16:02:40 -0700 (Sat, 30 Jan 2010) | 3 lines

Fix coroipcs message corruption that occurs when a message fills the remainder
of the dispatch buffer with a full message.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2697 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake il y a 16 ans
Parent
commit
6be128a745
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      exec/coroipcs.c

+ 4 - 0
exec/coroipcs.c

@@ -1179,6 +1179,10 @@ static int shared_mem_dispatch_bytes_left (const struct conn_info *conn_info)
 	} else {
 	} else {
 		bytes_left = n_read - n_write;
 		bytes_left = n_read - n_write;
 	}
 	}
+	if (bytes_left > 0) {
+		bytes_left--;
+	}
+
 	return (bytes_left);
 	return (bytes_left);
 }
 }