Browse Source

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
changes/32/28232/2
Neels Hofmeyr 2 months ago
parent
commit
da9d08c94e
  1. 2
      src/osmo-hnbgw/hnbgw_rua.c

2
src/osmo-hnbgw/hnbgw_rua.c

@ -271,7 +271,7 @@ static int rua_to_scu(struct hnb_context *hnb,
}
/* 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);
rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));

Loading…
Cancel
Save