From 7a12faa195c44e92776c9680b6f6d5ada80b2df0 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Tue, 9 Jun 2009 08:26:58 +0000 Subject: 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. --- src/gsm_04_08.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3