msc: In forward_only mode never ask any of the connection tracking code
For the forward only code we never want to go through the other
cases, make sure to always return.
diff --git a/src/msc_conn.c b/src/msc_conn.c
index 31a71fd..e43a304 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -164,9 +164,11 @@
int rc;
/* we can not forward it right now */
- if (fw->forward_only && fw->bsc->sccp_up) {
- if (send_or_queue_bsc_msg(fw->bsc, -1, msg) != 1)
- msgb_free(msg);
+ if (fw->forward_only) {
+ if (fw->bsc->sccp_up && send_or_queue_bsc_msg(fw->bsc, -1, msg) == 1)
+ return 0;
+
+ msgb_free(msg);
return 0;
}