summaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 00:38:54 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 18:58:35 +0800
commit3837f99e89f9e02425726d4e32d4f413769b66ea (patch)
treee6346c7df5ea2b0ca02ccc50e214b0eabc0019a4 /openbsc/src/nat/bsc_nat.c
parent27640fc25516537fce5e85a1e4fc105b68adb7af (diff)
nat: Keep the fiter status in the return message.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index e82c1a613..1f45e4587 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -708,10 +708,12 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
/* modify the SCCP entries */
if (parsed->ipa_proto == IPAC_PROTO_SCCP) {
+ int filter;
struct sccp_connections *con;
switch (parsed->sccp_type) {
case SCCP_MSG_TYPE_CR:
- if (bsc_nat_filter_sccp_cr(bsc, msg, parsed, &con_type) != 0)
+ filter = bsc_nat_filter_sccp_cr(bsc, msg, parsed, &con_type);
+ if (filter != 0)
goto exit3;
if (!create_sccp_src_ref(bsc, parsed))
goto exit2;