nat: Remove the code that is wrongly placed..
i refers to the MSC side of endpoints and not the BSC..
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 2dcd250..12124af 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -133,15 +133,6 @@
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;
}