summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2015-11-09 14:44:15 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-11-09 14:44:15 +0300
commit27c905310b039e5c7ce03c44ff9b7254c35c32f9 (patch)
treee08af0fad18256bbad00297f6519f5aa0a096e26
parent3e374dbbb4474a3429fac102baf8446f4ac5f13b (diff)
sup: fix handling update location result messagefairwaves/sup
If LUR procedure timed out, we should just skip update location result message.
-rw-r--r--openbsc/src/libmsc/gsm_sup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_sup.c b/openbsc/src/libmsc/gsm_sup.c
index ab1766420..000944ba8 100644
--- a/openbsc/src/libmsc/gsm_sup.c
+++ b/openbsc/src/libmsc/gsm_sup.c
@@ -115,6 +115,12 @@ static int subscr_handle_sup_upd_loc_res(struct gsm_subscriber *subscr,
{
uint8_t msisdn_lv[10];
+ if (!subscr->group) {
+ LOGGSUBSCRP(LOGL_ERROR, subscr,
+ "Update location result was received, but LUR procedure timedout.\n");
+ return -1;
+ }
+
if (gsup_msg->msisdn_enc) {
if (gsup_msg->msisdn_enc_len > sizeof(msisdn_lv) - 1) {
LOGP(DSUP, LOGL_ERROR, "MSISDN too long (%zu)\n",