aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-15 16:26:18 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-06-17 21:06:43 +0700
commitae95436c7aa5865545406c4a6e0ef4a5b5fb7c47 (patch)
tree42958592a2f6187d7fb90ea89446625b6804990f
parentdb5bc701a8db933b72665520186b1cc8cc3e7b2a (diff)
libmsc/gsm_09_11.c: drop rudimentary vsub->cgi.lai.lac check
This check was copy-pasted either from CC, or from SMS handling code during the initial development of "SS/USSD over GSUP". Now this is the only one survived after the recent refactoring. I doubt this is exactly the right way to check whether subscriber is attached or not. Moreover, this check should rather be done in a single place, rather then in each CC/SS/SMS handler separately. Change-Id: I7bd48860e923cb1f1a5bccc4b0f497ec1a7bcf84
-rw-r--r--src/libmsc/gsm_09_11.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libmsc/gsm_09_11.c b/src/libmsc/gsm_09_11.c
index b85c74259..bcf8dec2d 100644
--- a/src/libmsc/gsm_09_11.c
+++ b/src/libmsc/gsm_09_11.c
@@ -330,13 +330,6 @@ static struct gsm_trans *establish_nc_ss_trans(struct gsm_network *net,
return NULL;
}
- /* If subscriber is not "attached" */
- if (!vsub->cgi.lai.lac) {
- LOGP(DSS, LOGL_ERROR, "Network-originated session "
- "rejected - subscriber is not attached\n");
- return NULL;
- }
-
/* Obtain an unused transaction ID */
tid = trans_assign_trans_id(net, vsub, TRANS_USSD);
if (tid < 0) {