aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-05 13:44:12 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-18 20:09:55 +0000
commit8f02f0fdca72526813cd0f808f470dfb9b137971 (patch)
tree1087fe6d38bd4ad7ee53917c30d955fb62ab2cb2
parentf1e31ca88220a01648a20eecb0f20e398d5bc05b (diff)
bsc: gsm0808: Fix return code in bsc_compl_l3
complete_layer3 returns true if everything succeeded, false otherwise. However, its caller bsc_compl_l3 returns unix style (0 sucess, negative error). This commit has no real effect since only caller of bsc_compl_l3 never checks return code, but will check it in the future. Change-Id: I722696c3f6402288b51d6fcf51f478b3b0c9f0f0
-rw-r--r--src/osmo-bsc/gsm_08_08.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/gsm_08_08.c b/src/osmo-bsc/gsm_08_08.c
index 062c878d3..a3e8b3093 100644
--- a/src/osmo-bsc/gsm_08_08.c
+++ b/src/osmo-bsc/gsm_08_08.c
@@ -366,7 +366,7 @@ int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg, uint1
return -1;
}
- return complete_layer3(conn, msg, msc);
+ return complete_layer3(conn, msg, msc) ? 0 : -2;
}
static int handle_page_resp(struct gsm_subscriber_connection *conn, struct msgb *msg)