summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-06-09 08:26:58 +0000
committerHolger Freyther <zecke@selfish.org>2009-06-09 08:26:58 +0000
commit7a12faa195c44e92776c9680b6f6d5ada80b2df0 (patch)
treed6d1e665051e86b32b0bf94f83bb452325315413 /src
parent578001b151ee86fc8b0396d86c1191c2e040538d (diff)
gsm_04_08.c: Call subscr_update everytime we let someone in (Andreas Eversberg)
If location update is requested, but subscriber is not yet authorised within mm_rx_loc_upd_req() function, the subscr_update() is not called, because subscriber information is not complete. During mm_rx_id_resp() the subscriber informations is may be complete, so authorize subscriber succeeds and database must be updated.
Diffstat (limited to 'src')
-rw-r--r--src/gsm_04_08.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsm_04_08.c b/src/gsm_04_08.c
index 83f38dd8b..d044295e5 100644
--- a/src/gsm_04_08.c
+++ b/src/gsm_04_08.c
@@ -531,6 +531,7 @@ static int mm_rx_id_resp(struct msgb *msg)
/* Check if we can let the mobile station enter */
if (authorize_subscriber(lchan->loc_operation, lchan->subscr)) {
db_subscriber_alloc_tmsi(lchan->subscr);
+ subscr_update(lchan->subscr, msg->trx->bts, GSM_SUBSCRIBER_UPDATE_ATTACHED);
tmsi = strtoul(lchan->subscr->tmsi, NULL, 10);
release_loc_updating_req(lchan);
return gsm0408_loc_upd_acc(msg->lchan, tmsi);