sup: fix handling update location result message

If LUR procedure timed out, we should just skip update location result message.
This commit is contained in:
Ivan Kluchnikov 2015-11-09 14:44:15 +03:00
parent 991691f8df
commit e5e251c396
1 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,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",