Browse Source

fix crash for unknown MI during Paging Response

Related: OS#4724
Related: I40496bbccbbd9c496cfa57df49e26f124a2b1554 (osmo-ttcn3-hacks)
Change-Id: Ia2c8fa745cfab17ed7114d433f625ddc02ae7b11
neels/1.6.2
Neels Hofmeyr 2 years ago
parent
commit
36b604181c
  1. 7
      src/libmsc/gsm_04_08.c

7
src/libmsc/gsm_04_08.c

@ -1185,7 +1185,12 @@ static int gsm48_rx_rr_pag_resp(struct msc_a *msc_a, struct msgb *msg)
vsub = msc_a_vsub(msc_a);
if (!vsub) {
LOG_MSC_A(msc_a, LOGL_ERROR, "subscriber not allowed to do a Paging Response\n");
msc_a_put(msc_a, MSC_A_USE_PAGING_RESPONSE);
/* Above MSC_A_USE_PAGING_RESPONSE may already have been removed by a forced release, put that use only
* if it still exists. (see msc_a_fsm_releasing_onenter()) */
if (osmo_use_count_by(&msc_a->use_count, MSC_A_USE_PAGING_RESPONSE))
msc_a_put(msc_a, MSC_A_USE_PAGING_RESPONSE);
return -EIO;
}

Loading…
Cancel
Save