mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Prevent a potential crash when using manager hooks.
Found by me while poking at DPMA-127. ........ Merged revisions 364841 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 364842 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4226,7 +4226,7 @@ static int action_originate(struct mansession *s, const struct message *m)
|
||||
ast_parse_allow_disallow(NULL, cap, codecs, 1);
|
||||
}
|
||||
|
||||
if (!ast_strlen_zero(app)) {
|
||||
if (!ast_strlen_zero(app) && s->session) {
|
||||
int bad_appdata = 0;
|
||||
/* To run the System application (or anything else that goes to
|
||||
* shell), you must have the additional System privilege */
|
||||
|
Reference in New Issue
Block a user