Don't overwrite a pointer to the first channel... that is bad. (issue #9770 reported by tfbu)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2007-05-22 12:58:38 +00:00
parent 9b5d9279be
commit 5b4de10a12
1 changed files with 1 additions and 1 deletions

View File

@ -2209,7 +2209,7 @@ static int action_bridge(struct mansession *s, const struct message *m)
return 1;
}
if (!(tmpchana = ast_channel_alloc(0, AST_STATE_DOWN, NULL, NULL, NULL,
if (!(tmpchanb = ast_channel_alloc(0, AST_STATE_DOWN, NULL, NULL, NULL,
NULL, NULL, 0, "Bridge/%s", chanb->name))) {
astman_send_error(s, m, "Unable to create temporary channels!");
ast_channel_free(tmpchana);