aboutsummaryrefslogtreecommitdiffstats
path: root/src/msc_conn.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 20:03:52 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 20:09:09 +0100
commitcea4518410c0b6b6c00a2df3350b6d9705f925cd (patch)
tree550ed77e9c0baa9415fe34e23815eba07221e3cb /src/msc_conn.c
parent7ca2b03aa68a4f74f36206ee608c168afbe36433 (diff)
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.
Diffstat (limited to 'src/msc_conn.c')
-rw-r--r--src/msc_conn.c8
1 files changed, 5 insertions, 3 deletions
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 @@ static int ipaccess_a_fd_cb(struct bsc_fd *bfd)
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;
}