aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-05 11:44:47 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-05 11:44:47 +0200
commitfa1cba9e606c3364fecabe85967950cc217fd870 (patch)
treec3d9c042c80f85b89d0ced90370450ca96b9c954 /openbsc/src/osmo-bsc_nat
parent6f6cbf7c5dedfd6335024004b1d21809e806a40d (diff)
nat: The reject cause of "-1" has failure meaning, change it
bsc_stat_reject is treating -1 as parsing failure but for the global barring. Change it to another return value so it is not counted as parsing failure.
Diffstat (limited to 'openbsc/src/osmo-bsc_nat')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_filter.c b/openbsc/src/osmo-bsc_nat/bsc_nat_filter.c
index d29ea9c16..64f6d7347 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat_filter.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat_filter.c
@@ -163,7 +163,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *imsi,
LOGP(DNAT, LOGL_DEBUG,
"Blocking subscriber IMSI %s with CM: %d LU: %d\n",
imsi, cm, lu);
- return -1;
+ return -4;
}