aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-07-22 01:29:54 +0200
committerneels <nhofmeyr@sysmocom.de>2021-07-22 12:15:36 +0000
commit0c2d98e0c4bcdb1160bece2ecab77910ca0f4c76 (patch)
treec266f2b5c2a4a14e2ee29c59a65a8dcce61f0197
parenta46cd05e938ee5d454903086b5643f5e70bb5d4f (diff)
RES IND: tweak error code on missing Resource Information IE
If the RES IND message is invalid, let's not return ENOENT which translates to "No such file or directory", instead return EINVAL. Related: SYS#5313 Change-Id: Ifd700e90c881874d428f2860603a4ddbf13d705e
-rw-r--r--src/osmo-bsc/abis_rsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c
index 02037e177..8e4916dc0 100644
--- a/src/osmo-bsc/abis_rsl.c
+++ b/src/osmo-bsc/abis_rsl.c
@@ -1495,7 +1495,7 @@ static int rsl_rx_resource_indication(struct msgb *msg)
res_info_ie = TLVP_GET(&tp, RSL_IE_RESOURCE_INFO);
if (!res_info_ie) {
LOGP(DRSL, LOGL_ERROR, "Rx Resource Indication: missing Resource Info IE\n");
- return -ENOENT;
+ return -EINVAL;
}
/* The IE value is defined in 3GPP TS 48.058 9.3.21 Resource Information: