[asterisk-commits] tilghman: trunk r83880 - in /trunk: ./ channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 26 13:43:24 CDT 2007


Author: tilghman
Date: Wed Sep 26 13:43:23 2007
New Revision: 83880

URL: http://svn.digium.com/view/asterisk?view=rev&rev=83880
Log:
Merged revisions 83879 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83879 | tilghman | 2007-09-26 13:35:56 -0500 (Wed, 26 Sep 2007) | 2 lines

Remove unused 4k of memory on the program stack (closes issue #10827)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_zap.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=83880&r1=83879&r2=83880
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Wed Sep 26 13:43:23 2007
@@ -5204,7 +5204,6 @@
 {
 	struct zt_pvt *p = ast->tech_pvt;
 	int res;
-	unsigned char outbuf[4096];
 	int index;
 	index = zt_get_index(ast, p, 0);
 	if (index < 0) {
@@ -5255,10 +5254,6 @@
 	/* Return if it's not valid data */
 	if (!frame->data || !frame->datalen)
 		return 0;
-	if (frame->datalen > sizeof(outbuf) * 2) {
-		ast_log(LOG_WARNING, "Frame too large\n");
-		return 0;
-	}
 
 	if (frame->subclass == AST_FORMAT_SLINEAR) {
 		if (!p->subs[index].linear) {




More information about the asterisk-commits mailing list