nat: Close the right endpoint down the stream.

This commit is contained in:
Holger Hans Peter Freyther 2010-08-29 22:39:07 +08:00
parent 0d8330c8cc
commit 8574dcf9da
1 changed files with 1 additions and 1 deletions

View File

@ -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");