diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2017-12-14 16:11:48 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2018-01-30 18:59:28 +0100 |
commit | 038a666af04beb2fc1f94276345cc30ed52847fd (patch) | |
tree | a19a370e9a90468ff6ffb2f6efb2fce6b9308d3e /openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | |
parent | a683912c50b7848d7cd5bc506741221a1eb16f69 (diff) |
osmo-bsc_nat: Fix detection of stale connections in MGCP
Change-Id: Ieea0314f922c56325749f18f148f1e518bd2d1af
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c index 704168ef1..81bdf4686 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c @@ -213,7 +213,7 @@ int bsc_mgcp_assign_patch(struct nat_sccp_connection *con, struct msgb *msg) /* find stale connections using that endpoint */ llist_for_each_entry(mcon, &con->bsc->nat->sccp_connections, list_entry) { - if (mcon->msc_endp == endp) { + if (mcon->msc_endp == endp && mcon->mgcp_conf == con->mgcp_conf) { LOGP(DNAT, LOGL_ERROR, "Endpoint %d was assigned to 0x%x and now 0x%x\n", endp, |