[zaptel-commits] mattf: branch 1.2 r2405 - /branches/1.2/zaptel-base.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Apr 11 12:01:22 MST 2007


Author: mattf
Date: Wed Apr 11 14:01:21 2007
New Revision: 2405

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2405
Log:
Fix buglet in memory corruption fix.



Modified:
    branches/1.2/zaptel-base.c

Modified: branches/1.2/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel-base.c?view=diff&rev=2405&r1=2404&r2=2405
==============================================================================
--- branches/1.2/zaptel-base.c (original)
+++ branches/1.2/zaptel-base.c Wed Apr 11 14:01:21 2007
@@ -1728,7 +1728,7 @@
 	chan->readidx[res] = 0;
 	chan->readn[res] = 0;
 	oldbuf = res;
-	res = (chan->outreadbuf + 1) % chan->numbufs;
+	chan->outreadbuf = (res + 1) % chan->numbufs;
 	if (chan->outreadbuf == chan->inreadbuf) {
 		/* Out of stuff */
 		chan->outreadbuf = -1;



More information about the zaptel-commits mailing list