aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 22:44:10 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 22:44:10 +0800
commit7d5bb26fdcb402e46fc301468ed903e4c4023bf0 (patch)
tree2ca1767fa60d287ff285cae2e4b5c83df7165963 /openbsc
parent8574dcf9da046daaff5703342e376f9f82cc8734 (diff)
nat: Remove the code that is wrongly placed..
i refers to the MSC side of endpoints and not the BSC..
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 2dcd2502..12124aff 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -133,15 +133,6 @@ static void bsc_mgcp_free_endpoint(struct bsc_nat *nat, int i)
nat->bsc_endpoints[i].transaction_id = NULL;
}
- /* Free the endpoint status, so we can allocate it again */
- if (nat->bsc_endpoints[i].bsc) {
- struct bsc_connection *bsc = nat->bsc_endpoints[i].bsc;
- if (bsc->endpoint_status[i] != 1)
- LOGP(DNAT, LOGL_ERROR, "Endpoint %d should be allocated\n", i);
-
- bsc->endpoint_status[i] = 0;
- }
-
nat->bsc_endpoints[i].transaction_state = 0;
nat->bsc_endpoints[i].bsc = NULL;
}