aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 22:39:07 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 22:39:07 +0800
commit8574dcf9da046daaff5703342e376f9f82cc8734 (patch)
treed43b685c4d0db5af44927e695a5977e9e8372534 /openbsc
parent0d8330c8cc066ce6609286fe58de3f7962ef7736 (diff)
nat: Close the right endpoint down the stream.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 475e04cc..2dcd2502 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -333,7 +333,7 @@ static void free_chan_downstream(struct mgcp_endpoint *endp, struct bsc_endpoint
ENDPOINT_NUMBER(endp));
} else {
if (con->bsc == bsc) {
- bsc_mgcp_send_dlcx(bsc, ENDPOINT_NUMBER(endp));
+ bsc_mgcp_send_dlcx(bsc, con->bsc_endp);
} else {
LOGP(DMGCP, LOGL_ERROR,
"Endpoint belongs to a different BSC\n");