iu_client: Fix incorrect access to null pointer

Fixes: adec82f3b1
Closes: Coverity CID#243765
Related: OS#5398
Change-Id: Ib435b053241c294619c3478fe3b6450d8d181888
This commit is contained in:
Pau Espin 2022-01-13 10:40:15 +01:00
parent bc518cf152
commit fd410172bf
1 changed files with 1 additions and 2 deletions

View File

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