diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-31 09:15:05 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-31 09:15:05 +0200 |
commit | 81a8975662dcff9c40798ee4b6ff459fd058d1c0 (patch) | |
tree | e2f0daf1a8eb6270ab082ec54e87dc06264af548 | |
parent | fd876b7488a8ae924f1a09144265d4474495408f (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.
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 5 |
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 */ |