mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
[nat] Fix VTY bug with access-lists...
vty->index does not hold a BSC Config at this point as we are on the nat level... use the global _nat pointer for now...
This commit is contained in:
@@ -387,9 +387,8 @@ DEFUN(cfg_lst_imsi_allow,
|
||||
"The regexp of allowed IMSIs\n")
|
||||
{
|
||||
struct bsc_nat_access_list *acc;
|
||||
struct bsc_config *conf = vty->index;
|
||||
|
||||
acc = bsc_nat_accs_list_get(conf->nat, argv[0]);
|
||||
acc = bsc_nat_accs_list_get(_nat, argv[0]);
|
||||
if (!acc)
|
||||
return CMD_WARNING;
|
||||
|
||||
@@ -405,9 +404,8 @@ DEFUN(cfg_lst_imsi_deny,
|
||||
"The regexp of to be denied IMSIs\n")
|
||||
{
|
||||
struct bsc_nat_access_list *acc;
|
||||
struct bsc_config *conf = vty->index;
|
||||
|
||||
acc = bsc_nat_accs_list_get(conf->nat, argv[0]);
|
||||
acc = bsc_nat_accs_list_get(_nat, argv[0]);
|
||||
if (!acc)
|
||||
return CMD_WARNING;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user