From 8574dcf9da046daaff5703342e376f9f82cc8734 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 29 Aug 2010 22:39:07 +0800 Subject: nat: Close the right endpoint down the stream. --- openbsc/src/nat/bsc_mgcp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c index 475e04cc2..2dcd25022 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"); -- cgit v1.2.3