diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-07-04 10:18:00 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-07-04 10:18:00 +0200 |
commit | 24516ea2d6623a7b0802558ad241aa962217c65e (patch) | |
tree | 8f11ec3683ae86e722ec233404bfe00b3c112d3f /openbsc | |
parent | 4a3464c565d44ac74ec56fa8222b3eddd642d4b6 (diff) |
make sure we always schedule a location updating reject
IT sems that if a MS uses the TMSI of a previous network, we did not start
the reject timer. Thanks to Andreas Eversberg.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 40fa3eda0..2312e8abe 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -1256,6 +1256,9 @@ static int mm_rx_loc_upd_req(struct msgb *msg) break; } + /* schedule the reject timer */ + schedule_reject(lchan); + if (!subscr) { DEBUGPC(DRR, "<- Can't find any subscriber for this ID\n"); /* FIXME: request id? close channel? */ @@ -1264,12 +1267,8 @@ static int mm_rx_loc_upd_req(struct msgb *msg) lchan->subscr = subscr; - /* - * Schedule the reject timer and check if we can let the - * subscriber into our network immediately or if we need to wait - * for identity responses. - */ - schedule_reject(lchan); + /* check if we can let the subscriber into our network immediately + * or if we need to wait for identity responses. */ return gsm0408_authorize(lchan, msg); } |