summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2015-10-15 16:30:45 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-10-24 12:26:15 +0300
commitaf7916c747711cc16baf243f9663d4811b1b3bb5 (patch)
treec6c82d219644d2809610a72bb73b34f0ff5dcecc
parent3cce9fda6dcd7f1f8eac6e095d05662a4a8f0e69 (diff)
sup: Change status of waiting_for_remote_accept before checking subscriber
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index b487309..d6b2cb4 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -670,6 +670,8 @@ static int mm_rx_loc_upd_req(struct gsm_subscriber_connection *conn, struct msgb
/* schedule the reject timer */
schedule_reject(conn);
+ conn->loc_operation->waiting_for_remote_accept = 1;
+
if (!subscr) {
DEBUGPC(DRR, "<- Can't find any subscriber for this ID\n");
/* FIXME: request id? close channel? */
@@ -679,8 +681,6 @@ static int mm_rx_loc_upd_req(struct gsm_subscriber_connection *conn, struct msgb
conn->subscr = subscr;
conn->subscr->equipment.classmark1 = lu->classmark1;
- conn->loc_operation->waiting_for_remote_accept = 1;
-
/* check if we can let the subscriber into our network immediately
* or if we need to wait for identity responses. */
return gsm0408_authorize(conn, msg);