]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove unused 4k of memory on the program stack (closes issue #10827)
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 26 Sep 2007 18:35:56 +0000 (18:35 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 26 Sep 2007 18:35:56 +0000 (18:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83879 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 540ef9167a0d6e910c75b5a91dd41f267b6fa171..dd4d13a18ac199b065646212722e29136772e36b 100644 (file)
@@ -4914,7 +4914,6 @@ static int zt_write(struct ast_channel *ast, struct ast_frame *frame)
 {
        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) {
@@ -4968,10 +4967,6 @@ static int zt_write(struct ast_channel *ast, struct ast_frame *frame)
        /* 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) {