the manager's GetVar handler if an invalid channel has
been specified. Several dialplan functions, including
CHANNEL and SIP_HEADER, do not check for NULL-ness of
the channel being passed in.
(closes issue #13715)
Reported by: makoto
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@150298
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (varname[strlen(varname) - 1] == ')') {
char *copy = ast_strdupa(varname);
-
+ if (!c) {
+ astman_send_error(s, m, "No such channel");
+ }
ast_func_read(c, copy, workspace, sizeof(workspace));
varval = workspace;
} else {