mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
mar feb 18 19:15:15 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -958,6 +958,8 @@ static agi_command *find_command(char *cmds[], int exact)
|
||||
then this is not a match */
|
||||
if (!commands[x].cmda[y] && !exact)
|
||||
break;
|
||||
/* don't segfault if the next part of a command doesn't exist */
|
||||
if (!commands[x].cmda[y]) return NULL;
|
||||
if (strcasecmp(commands[x].cmda[y], cmds[y]))
|
||||
match = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user