]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix crash caused by merge error on review 4138
authorCorey Farrell <git@cfware.com>
Tue, 4 Nov 2014 14:09:43 +0000 (14:09 +0000)
committerCorey Farrell <git@cfware.com>
Tue, 4 Nov 2014 14:09:43 +0000 (14:09 +0000)
When merging from 12 to 13 there were conflicts,
I mistakenly had the loop run ast_closestream(others[0])
when it should be ast_closestream(others[x]).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@427181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/app.c

index 64a4ae6720aff087b7fcc39b7e5d0639f6f66e02..46589ea4a0e9398eb6e4868a68ba07029d140399 100644 (file)
@@ -1793,7 +1793,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
                                break;
                        }
                        if (!realfiles[x]) {
-                               ast_closestream(others[0]);
+                               ast_closestream(others[x]);
                                continue;
                        }
                        /*!\note Same logic as above. */