osmo-msc/src/libmsc
Harald Welte 284c39af2a msc_cipher_mode_compl: Handle CIPH MOD COMPL without L3 message
According to TS 44.008 Section 3.2.1.31, the "Layer 3 Message Contents"
IE of the BSSMAP Cipher Mode Complete is optional. The BSC may hence
inlcude that IE or not include it.

Without this patch, OsmoMSC is crashing if that IE was missing:

<000a> a_iface_bssap.c:699 Rx BSC DT: 00 03 55 2c 02
<000a> a_iface_bssap.c:629 Rx MSC DT1 BSSMAP CIPHER MODE COMPLETE
<001f> a_iface_bssap.c:91 Found A subscriber for conn_id 1
<000a> a_iface_bssap.c:415 BSC sends cipher mode complete (conn_id=1)
==5611== Invalid read of size 8
==5611==    at 0x128D0F: msc_cipher_mode_compl (osmo_msc.c:159)
==5611==    by 0x114F62: bssmap_rx_ciph_compl.isra.8 (a_iface_bssap.c:432)
==5611==    by 0x113267: sccp_sap_up (a_iface.c:520)

Change-Id: I722f9b468b157b3736918f090daaa9489a6028ee
Closes: OS#2871
2018-01-24 23:12:15 +01:00
..
Makefile.am Remove traces of meas_feed 2018-01-24 14:04:46 +00:00
a_iface.c cosmetic: log prim operation as text 2018-01-24 14:03:54 +00:00
a_iface_bssap.c cosmetic: rename sccp_rx_udt and sccp_rx_dt to a_* 2017-12-20 16:14:50 +00:00
auth.c Migrate from OpenSSL to osmo_get_rand_id() 2017-12-27 11:11:14 +00:00
ctrl_commands.c Add control command to expire subscriber 2018-01-05 10:10:35 +00:00
db.c Fix value of stored SMS validity time. 2018-01-23 16:57:52 +00:00
gsm_04_08.c Properly reject CM Re-Establishment Request 2018-01-24 22:57:20 +01:00
gsm_04_11.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
gsm_04_14.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_04_80.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
gsm_subscriber.c fix: properly cancel all Paging on IMSI Detach 2017-12-20 23:07:10 +01:00
iu_dummy.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
iucs_ranap.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
meas_feed.h move openbsc/* to repos root 2017-07-12 23:17:10 +00:00
mncc.c MNCC: Add input validation 2018-01-23 17:03:05 +00:00
mncc_builtin.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
mncc_sock.c MNCC: Add input validation 2018-01-23 17:03:05 +00:00
msc_ifaces.c fix build: remove obsolete header legacy_mgcp/mgcp.h 2017-09-24 19:52:25 +02:00
msc_vty.c libmsc: msc_vty: Fix compilation warning 2018-01-22 13:49:55 +01:00
osmo_msc.c msc_cipher_mode_compl: Handle CIPH MOD COMPL without L3 message 2018-01-24 23:12:15 +01:00
rrlp.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
silent_call.c compiler warning: extend #if 0 to include unused array 2017-12-18 23:14:58 +00:00
smpp_openbsc.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp_smsc.c smpp_smsc.c: don't talloc_strdup NULL pointers 2018-01-07 19:04:10 +01:00
smpp_smsc.h libmsc: add support for SMPP delivery receipts 2017-08-27 02:33:49 +02:00
smpp_utils.c rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
smpp_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
sms_queue.c Delete SMS from the database once they were sent successfully 2018-01-18 18:55:26 +01:00
subscr_conn.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
transaction.c subscr_conn: introduce usage tokens for ref error tracking 2017-11-27 15:40:01 +01:00
ussd.c src/libmsc/ussd.c: drop useless forward declaration 2018-01-10 22:17:37 +06:00
vty_interface_layer3.c Remove traces of meas_feed 2018-01-24 14:04:46 +00:00