From 47cf6bd001899680a0e0d1a4f920d2a37c19ec1e Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 17 Jul 2018 20:13:27 +0200 Subject: 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 --- src/gprs/gprs_gmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c index a363c709a..a86fe2bb4 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); -- cgit v1.2.3