diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-03 01:34:20 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-03 01:34:20 +0800 |
commit | e6a8a9359dd26eedd04d81041bdfece71c0e97dd (patch) | |
tree | a6c10ea49324f085caf1eb658c93eedf577ecc65 /openbsc | |
parent | 1d55fd9e2b11f1549359ac6068562e0f20e5f781 (diff) |
[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...
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_nat_vty.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/nat/bsc_nat_vty.c b/openbsc/src/nat/bsc_nat_vty.c index e77a896a2..4b97ffc13 100644 --- a/openbsc/src/nat/bsc_nat_vty.c +++ b/openbsc/src/nat/bsc_nat_vty.c @@ -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; |