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