aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-09-17 16:20:40 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-10-03 20:30:31 +0200
commita6eb09d6dbf4af30cd2ecce6d44824b1c7fde831 (patch)
treeb915a6a09500786249bdf54c5605e2e749abbb2e
parente844bf7828ae3d05e5ad220664f684115a1c2760 (diff)
iu_client: pass return value of osmo_sccp_user_sap_down() towards the caller
osmo_sccp_user_sap_down return 0 on success, negative values on failure Change-Id: I3b7c2296eb8b26f0881cee643b834336daab86ea
-rw-r--r--src/iu_client.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/iu_client.c b/src/iu_client.c
index c309ce4..f4a9cd3 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -306,9 +306,7 @@ int ranap_iu_tx_sec_mode_cmd(struct ranap_ue_conn_ctx *uectx, struct osmo_auth_v
osmo_prim_init(&prim->oph, SCCP_SAP_USER,
OSMO_SCU_PRIM_N_DATA,
PRIM_OP_REQUEST, msg);
- osmo_sccp_user_sap_down(g_scu, &prim->oph);
-
- return 0;
+ return osmo_sccp_user_sap_down(g_scu, &prim->oph);
}
int ranap_iu_tx_common_id(struct ranap_ue_conn_ctx *uectx, const char *imsi)
@@ -326,8 +324,7 @@ int ranap_iu_tx_common_id(struct ranap_ue_conn_ctx *uectx, const char *imsi)
osmo_prim_init(&prim->oph, SCCP_SAP_USER,
OSMO_SCU_PRIM_N_DATA,
PRIM_OP_REQUEST, msg);
- osmo_sccp_user_sap_down(g_scu, &prim->oph);
- return 0;
+ return osmo_sccp_user_sap_down(g_scu, &prim->oph);
}
static int iu_grnc_id_parse(struct iu_grnc_id *dst, struct RANAP_GlobalRNC_ID *src)
@@ -467,8 +464,7 @@ int ranap_iu_tx(struct msgb *msg_nas, uint8_t sapi)
osmo_prim_init(&prim->oph, SCCP_SAP_USER,
OSMO_SCU_PRIM_N_DATA,
PRIM_OP_REQUEST, msg);
- osmo_sccp_user_sap_down(g_scu, &prim->oph);
- return 0;
+ return osmo_sccp_user_sap_down(g_scu, &prim->oph);
}
/* Send Iu Release for the given UE connection.