[asterisk-commits] file: trunk r183652 - /trunk/main/bridging.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Mar 22 16:00:32 CDT 2009
Author: file
Date: Sun Mar 22 16:00:28 2009
New Revision: 183652
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183652
Log:
Fix a minor logic flaw with the bridge generic thread.
We only want to move the channel pointers that are actually present.
Modified:
trunk/main/bridging.c
Modified: trunk/main/bridging.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/bridging.c?view=diff&rev=183652&r1=183651&r2=183652
==============================================================================
--- trunk/main/bridging.c (original)
+++ trunk/main/bridging.c Sun Mar 22 16:00:28 2009
@@ -319,7 +319,7 @@
/* Move channels around for priority reasons if we have more than one channel in our array */
if (bridge->array_num > 1) {
struct ast_channel *first = bridge->array[0];
- memmove(bridge->array, bridge->array + 1, sizeof(bridge->array) - 1);
+ memmove(bridge->array, bridge->array + 1, sizeof(struct ast_channel *) * (bridge->array_num - 1));
bridge->array[(bridge->array_num - 1)] = first;
}
More information about the asterisk-commits
mailing list