aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-07-17 20:13:27 +0200
committerHarald Welte <laforge@gnumonks.org>2018-09-28 23:25:27 +0000
commit47cf6bd001899680a0e0d1a4f920d2a37c19ec1e (patch)
tree7d45cce6bf6a2aee22217adebf281fadacd39692
parent395c5580ec45cf79c631c83e2aa3c868b54124af (diff)
gprs_gmm: dont answer unknown IMSI/TMSI on Service Requests NET_FAIL
NET_FAIL will result in asking again and again. Reject with IMPL_DETACHED to drop the MS completely. Change-Id: I195d533e330a4b577cad80c7e757d481f9c837df
-rw-r--r--src/gprs/gprs_gmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index a363c70..a86fe2b 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1862,7 +1862,7 @@ static int gsm48_rx_gmm_service_req(struct sgsn_mm_ctx *ctx, struct msgb *msg)
ctx = sgsn_mm_ctx_by_imsi(mi_string);
if (!ctx) {
/* FIXME: We need to have a context for service request? */
- reject_cause = GMM_CAUSE_NET_FAIL;
+ reject_cause = GMM_CAUSE_IMPL_DETACHED;
goto rejected;
}
msgid2mmctx(ctx, msg);
@@ -1875,7 +1875,7 @@ static int gsm48_rx_gmm_service_req(struct sgsn_mm_ctx *ctx, struct msgb *msg)
ctx = sgsn_mm_ctx_by_ptmsi(tmsi);
if (!ctx) {
/* FIXME: We need to have a context for service request? */
- reject_cause = GMM_CAUSE_NET_FAIL;
+ reject_cause = GMM_CAUSE_IMPL_DETACHED;
goto rejected;
}
msgid2mmctx(ctx, msg);