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.
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 40fa3ed..2312e8a 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -1256,6 +1256,9 @@
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 @@
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);
}