diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-15 20:29:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-15 20:29:35 +0000 |
commit | 6ff94cfe0d2fdb1f860896f7839325c365ae1cf9 (patch) | |
tree | fb33eaa4bca2e908edfc6878f488b32fcb17b9de /apps/app_stack.c | |
parent | 6cc4dbb969eda50f9d508d9679915c93b315bc6f (diff) |
Don't execute a gosub if the arguments is zero-len (not just NULL)
Reported by davevg
Fixed by me
Closes issue #10985
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85687 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_stack.c')
-rw-r--r-- | apps/app_stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_stack.c b/apps/app_stack.c index 34aa8693f..ace440a63 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -138,10 +138,10 @@ static int gosubif_exec(struct ast_channel *chan, void *data) label2 = args; if (pbx_checkcondition(condition)) { - if (label1) { + if (!ast_strlen_zero(label1)) { res = gosub_exec(chan, label1); } - } else if (label2) { + } else if (!ast_strlen_zero(label2)) { res = gosub_exec(chan, label2); } |