From: Joshua Colp Date: Wed, 6 May 2009 16:09:27 +0000 (+0000) Subject: Make the code that prevents an infinite loop from happening into a case insensitive... X-Git-Tag: 11.0.0-beta1~4928 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d840c93b684daffa171eeca6a02fa1fb5daeed4;p=thirdparty%2Fasterisk.git Make the code that prevents an infinite loop from happening into a case insensitive check. (thanks eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@192736 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_clialiases.c b/res/res_clialiases.c index d7e38bbd7f..16458c250a 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);