diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-05 11:44:47 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-05 11:44:47 +0200 |
commit | fa1cba9e606c3364fecabe85967950cc217fd870 (patch) | |
tree | c3d9c042c80f85b89d0ced90370450ca96b9c954 /openbsc/src/osmo-bsc_nat | |
parent | 6f6cbf7c5dedfd6335024004b1d21809e806a40d (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.c | 2 |
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; } |