mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Don't try to unlock a bogus channel.
(closes issue #15144) Reported by: cristiandimache git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1550,6 +1550,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
|
||||
if (c) {
|
||||
ast_func_read(c, copy, workspace, sizeof(workspace));
|
||||
ast_channel_free(c);
|
||||
c = NULL;
|
||||
} else
|
||||
ast_log(LOG_ERROR, "Unable to allocate bogus channel for variable substitution. Function results may be blank.\n");
|
||||
} else
|
||||
|
Reference in New Issue
Block a user