libmsc/gsm_09_11.c: fix: return trans from establish_nc_ss_trans()
It is expected that establish_nc_ss_trans() returns an allocated transaction in successful case, or NULL in case of error. The function assumes two scenarios: - the subscriber already has an active RAN connection, - RAN connection needs to be established (Paging). In the first case, a pointer to the transaction is returned as expected, but in case of Paging, NULL has always been returned, even if there were no errors. Let's fix this. Change-Id: I9dcee64dd0b435ef29630c223132b81724701f93
This commit is contained in:
parent
20edc9723e
commit
04bbfb83d4
|
@ -409,7 +409,7 @@ static struct gsm_trans *establish_nc_ss_trans(struct gsm_network *net,
|
|||
msgb_tlv_put(trans->ss.msg, GSM0480_IE_FACILITY,
|
||||
gsup_msg->ss_info_len, gsup_msg->ss_info);
|
||||
|
||||
return NULL;
|
||||
return trans;
|
||||
}
|
||||
|
||||
/* NC SS specific transaction release.
|
||||
|
|
|
@ -375,7 +375,7 @@ DPAG Paging: IMSI-901700000004620:MSISDN-46071 for GSM 09.11 SS/USSD: Starting p
|
|||
paging request (SIGNALLING_HIGH_PRIO) to IMSI-901700000004620:MSISDN-46071 on GERAN-A
|
||||
strcmp(paging_expecting_imsi, vsub->imsi) == 0
|
||||
DREF VLR subscr IMSI-901700000004620:MSISDN-46071 + Paging: now used by 5 (attached,_test_ss_ussd_no,gsm0911_gsup_rx,NCSS,Paging)
|
||||
<-- GSUP rx OSMO_GSUP_MSGT_PROC_SS_REQUEST: vlr_gsupc_read_cb() returns -22
|
||||
<-- GSUP rx OSMO_GSUP_MSGT_PROC_SS_REQUEST: vlr_gsupc_read_cb() returns 0
|
||||
llist_count(&vsub->cs.requests) == 1
|
||||
DREF VLR subscr IMSI-901700000004620:MSISDN-46071 - _test_ss_ussd_no: now used by 4 (attached,gsm0911_gsup_rx,NCSS,Paging)
|
||||
paging_sent == 1
|
||||
|
|
Loading…
Reference in New Issue