Remove CLI service modes

The modes weren't used and provided access to raw memory which is not
safe.
This commit is contained in:
Markus Mäkelä
2016-12-22 11:05:29 +02:00
parent 7cbd62db52
commit 2bdda586f7
4 changed files with 1 additions and 36 deletions

View File

@ -1784,7 +1784,7 @@ execute_cmd(CLI_SESSION *cli)
for (int k = 0; k < cmds[i].options[j].argc_max && k < argc; k++)
{
arg_list[k] = convert_arg(cli->mode, args[k + 2], cmds[i].options[j].arg_types[k]);
arg_list[k] = convert_arg(args[k + 2], cmds[i].options[j].arg_types[k]);
if (arg_list[k] == 0)
{
dcb_printf(dcb, "Invalid argument: %s\n", args[k + 2]);