aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-30 10:45:48 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:09 +0800
commit23fe7be1ca7b2b057ebaf3563cfed56a3056f9e6 (patch)
treecde7c9e6df1bc7852d3da550296e9fa9dbae338f /openbsc/src/nat/bsc_nat.c
parent49c7fb52f00816522a17abab9a5e7e277b1717f2 (diff)
sccp: Move the destruction of the sccp connection to a new place
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 7d9cd899e..c7c6c4135 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -334,8 +334,7 @@ static void remove_bsc_connection(struct bsc_connection *connection)
continue;
#warning "TODO: Send a RLSD to the MSC. Or at least a clear command."
- llist_del(&sccp_patch->list_entry);
- talloc_free(sccp_patch);
+ sccp_connection_destroy(sccp_patch);
}
talloc_free(connection);