mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@85687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user