9
0
Fork 0

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.
This commit is contained in:
Holger Hans Peter Freyther 2011-02-10 20:03:52 +01:00
parent 7ca2b03aa6
commit cea4518410
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}