diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-05 23:09:27 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-05 23:09:27 +0200 |
commit | 3ba8963a1d8a55b19d3fd902dd2c20196afdff5a (patch) | |
tree | fbf85081a15baf0abd68583c0187766fe73ae645 /openbsc/src/nat/bsc_nat.c | |
parent | 238d15648142a68b26b57678576b2b047945b011 (diff) |
nat: Close all endpoints used by a BSC when the BSC is gone
Cleanup all endpoints that belonged to a given BSC. This is
one part of the cleanup, the other is to bring down the SCCP
link properly.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index fcf732b42..1465be01c 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -354,6 +354,9 @@ static void remove_bsc_connection(struct bsc_connection *connection) sccp_connection_destroy(sccp_patch); } + /* close endpoints allocated by this BSC */ + bsc_mgcp_clear_endpoints_for(connection); + talloc_free(connection); } |