vty: fix NULL-pointer dereference in cfg_bts_rep_dl_facch()

There is only one parameter in command:

  repeat dl-facch (command|all)

so indeed argv[0] must be used instead of argv[1].

Change-Id: I01efff109a33791e13b0149fc47c792d3266da71
Related: SYS#5114
This commit is contained in:
Vadim Yanitskiy 2020-12-30 19:06:22 +01:00
parent c5f51ee49b
commit cde3d1f29c
1 changed files with 1 additions and 1 deletions

View File

@ -2760,7 +2760,7 @@ DEFUN_ATTR(cfg_bts_rep_dl_facch,
return CMD_WARNING;
}
if (!strcmp(argv[1], "command")) {
if (!strcmp(argv[0], "command")) {
bts->repeated_acch_policy.dl_facch_cmd = true;
bts->repeated_acch_policy.dl_facch_all = false;
} else {