diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-06 16:09:27 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-06 16:09:27 +0000 |
commit | 7560b5641bfccf7778a4c70c7acacaf6f3c78528 (patch) | |
tree | 9dd909fd4c7dbfb50c29efc5fe18a5622049a8a2 /res/res_clialiases.c | |
parent | bdaeb6bf91d749fb3b564074c01dc9727eb49062 (diff) |
Make the code that prevents an infinite loop from happening into a case insensitive check.
(thanks eliel)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@192736 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_clialiases.c')
-rw-r--r-- | res/res_clialiases.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_clialiases.c b/res/res_clialiases.c index d7e38bbd7..16458c250 100644 --- a/res/res_clialiases.c +++ b/res/res_clialiases.c @@ -98,7 +98,7 @@ static char *cli_alias_passthrough(struct ast_cli_entry *e, int cmd, struct ast_ case CLI_GENERATE: line = a->line; line += (strlen(alias->alias)); - if (!strncmp(alias->alias, alias->real_cmd, strlen(alias->alias))) { + if (!strncasecmp(alias->alias, alias->real_cmd, strlen(alias->alias))) { generator = NULL; } else if (!ast_strlen_zero(a->word)) { struct ast_str *real_cmd = ast_str_alloca(strlen(alias->real_cmd) + strlen(line) + 1); |