aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-31 09:15:05 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-31 09:15:05 +0200
commit81a8975662dcff9c40798ee4b6ff459fd058d1c0 (patch)
treee2f0daf1a8eb6270ab082ec54e87dc06264af548 /openbsc/src/nat
parentfd876b7488a8ae924f1a09144265d4474495408f (diff)
nat: bsc_mgcp_clear is called from within the remove function
No need to call it twice... All endpoints should be properly freed as part of the SCCP disconnection.
Diffstat (limited to 'openbsc/src/nat')
-rw-r--r--openbsc/src/nat/bsc_nat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 4cc6549eb..b23c3954f 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -448,10 +448,7 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
break;
case SCCP_MSG_TYPE_RLC:
con = patch_sccp_src_ref_to_msc(msg, parsed, nat);
- if (con) {
- remove_sccp_src_ref(bsc, msg, parsed);
- bsc_mgcp_clear(con);
- }
+ remove_sccp_src_ref(bsc, msg, parsed);
break;
case SCCP_MSG_TYPE_UDT:
/* simply forward everything */