summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 818fc2eca..2a4bfa0c1 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -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 */