allow calling rua_to_scu() without data
There can be SCCP primitives without payload data, e.g. an "empty" SCCP Connection Request. Patch 'mgw_fsm: add MGW support to osmo-hnbgw' added RANAP message decoding that lacks a guard against NULL data. Fix that: do not try to decode NULL data. Related: SYS#5968 Change-Id: Id755e769e82ace7203460ea1b3c847c2c90d41bf
This commit is contained in:
parent
0ca9567fb2
commit
da9d08c94e
|
@ -271,7 +271,7 @@ static int rua_to_scu(struct hnb_context *hnb,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Intercept RAB Assignment Response, inform MGW FSM. */
|
/* Intercept RAB Assignment Response, inform MGW FSM. */
|
||||||
if (map && !map->is_ps && !release_context_map) {
|
if (data && len && map && !map->is_ps && !release_context_map) {
|
||||||
message = talloc_zero(map, ranap_message);
|
message = talloc_zero(map, ranap_message);
|
||||||
rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));
|
rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue