iu_client: Prevent crash if msgb passed to ranap_iu_tx has no dst

Related: OS#5398
Change-Id: I64beecd2c492d6312f60a1cf016ef022cda5252d
changes/24/26824/3
Pau Espin 1 year ago committed by laforge
parent c0a0b2562b
commit adec82f3b1
  1. 6
      src/iu_client.c

@ -461,6 +461,12 @@ int ranap_iu_tx(struct msgb *msg_nas, uint8_t sapi)
struct msgb *msg;
struct osmo_scu_prim *prim;
if (!uectx) {
LOGPIU(LOGL_ERROR, "Discarding to-be-transmitted L3 Message as RANAP DT with unset dst SCCP conn_id!\n",
uectx->conn_id);
return -ENOTCONN;
}
LOGPIU(LOGL_INFO, "Transmitting L3 Message as RANAP DT (SCCP conn_id %u)\n",
uectx->conn_id);

Loading…
Cancel
Save