mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
[nat] Fix the parsing of the access-list regexp...
We need to start at argv[1] for the regexp of this access-list, also subtract one from number of items..
This commit is contained in:
@@ -392,7 +392,7 @@ DEFUN(cfg_lst_imsi_allow,
|
||||
if (!acc)
|
||||
return CMD_WARNING;
|
||||
|
||||
bsc_parse_reg(acc, &acc->imsi_allow_re, &acc->imsi_allow, argc, argv);
|
||||
bsc_parse_reg(acc, &acc->imsi_allow_re, &acc->imsi_allow, argc - 1, &argv[1]);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ DEFUN(cfg_lst_imsi_deny,
|
||||
if (!acc)
|
||||
return CMD_WARNING;
|
||||
|
||||
bsc_parse_reg(acc, &acc->imsi_deny_re, &acc->imsi_deny, argc, argv);
|
||||
bsc_parse_reg(acc, &acc->imsi_deny_re, &acc->imsi_deny, argc - 1, &argv[1]);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user