From 6e495eee4b320041ea23a02ec3946deec8a51533 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 3 Jun 2010 01:38:53 +0800 Subject: [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.. --- openbsc/src/nat/bsc_nat_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc') 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; } -- cgit v1.2.3