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-03-30 10:45:48 +0200
commit22252a98e3a2c094edb9d179db8eddede517e339 (patch)
tree2353f1c4b628b1dc3b19f52c2a56ba5a70f791d2 /openbsc/src/nat/bsc_nat.c
parent957bc93244224124a1fa5576c94953ae09bc984d (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 338b15c40..4ad6b1abf 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);