[asterisk-commits] jrose: branch 11 r389896 - in /branches/11: ./ main/slinfactory.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 28 12:43:26 CDT 2013


Author: jrose
Date: Tue May 28 12:43:23 2013
New Revision: 389896

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389896
Log:
Fix a memory copying bug in slinfactory which was causing mixmonitor issues.

Reported by: Michael Walton
Tested by: Jonathan Rose
Patches:
    slinfactory.c.ASTERISK-21799.patch uploaded by Michael Walton (license 6502)
(closes issue ASTERISK-21799)
........

Merged revisions 389895 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/main/slinfactory.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/main/slinfactory.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/slinfactory.c?view=diff&rev=389896&r1=389895&r2=389896
==============================================================================
--- branches/11/main/slinfactory.c (original)
+++ branches/11/main/slinfactory.c Tue May 28 12:43:23 2013
@@ -147,7 +147,7 @@
 
 		if (sf->holdlen) {
 			if (sf->holdlen <= ineed) {
-				memcpy(offset, sf->hold, sf->holdlen * sizeof(*offset));
+				memcpy(offset, sf->offset, sf->holdlen * sizeof(*offset));
 				sofar += sf->holdlen;
 				offset += sf->holdlen;
 				sf->holdlen = 0;




More information about the asterisk-commits mailing list