aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2017-12-14 16:11:48 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2018-01-30 18:59:28 +0100
commit038a666af04beb2fc1f94276345cc30ed52847fd (patch)
treea19a370e9a90468ff6ffb2f6efb2fce6b9308d3e
parenta683912c50b7848d7cd5bc506741221a1eb16f69 (diff)
osmo-bsc_nat: Fix detection of stale connections in MGCP
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c2
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,