diff options
author | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2015-10-15 16:30:45 +0300 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2017-02-07 18:59:53 +0300 |
commit | f7cb56572a7e8dad159071c32579efd7392b5225 (patch) | |
tree | 191417f0e9a2e1ca6bb237bd8b72723ae44c988c /openbsc/src/libmsc/gsm_04_08.c | |
parent | 014316f514847feb8ee305d8d61025eca908aaa8 (diff) |
sup: Change status of waiting_for_remote_accept before checking subscriber
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_08.c')
-rw-r--r-- | openbsc/src/libmsc/gsm_04_08.c | 4 |
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 ab1330c23..5126c986b 100644 --- a/openbsc/src/libmsc/gsm_04_08.c +++ b/openbsc/src/libmsc/gsm_04_08.c @@ -717,6 +717,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? */ @@ -726,8 +728,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); |