aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-03 01:38:53 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:21 +0800
commitf0c3e912e319fd2ead9e07216c96e07a6edf45cd (patch)
treeac2dd6ebc5f09b476eba4822e30ea4ca12f7ac21 /openbsc/src/nat/bsc_nat_vty.c
parent86c4dc3a0e225414a124eada4c52d7f808a8178e (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..
Diffstat (limited to 'openbsc/src/nat/bsc_nat_vty.c')
-rw-r--r--openbsc/src/nat/bsc_nat_vty.c4
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;
}