summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2017-12-21 13:18:17 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2018-01-30 18:59:29 +0100
commitd85a7b0f3e3c93505c522d197dc2d0012906f59d (patch)
tree4626d908865df3ffd984a9e9acace843261653e7
parent5f017ff0d2e2e6304233fe499dc53bb47516b4f4 (diff)
bsc_nat: Remove warning for MSC-nat
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_sccp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_sccp.c b/openbsc/src/osmo-bsc_nat/bsc_sccp.c
index 26b3cefbd..f7358f881 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_sccp.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_sccp.c
@@ -232,7 +232,6 @@ struct nat_sccp_connection *patch_sccp_src_ref_to_msc(struct msgb *msg,
llist_for_each_entry(conn, &bsc->nat->sccp_connections, list_entry) {
if (conn->bsc != bsc)
continue;
-#warning "Do we need to patch the other ref in these ifs as well?"
if (parsed->src_local_ref) {
if (equal(parsed->src_local_ref, &conn->bsc_real_ref)) {
*parsed->src_local_ref = conn->bsc_patched_ref;
@@ -243,8 +242,6 @@ struct nat_sccp_connection *patch_sccp_src_ref_to_msc(struct msgb *msg,
} else if (parsed->dest_local_ref) {
if (equal(parsed->dest_local_ref, &conn->msc_patched_ref)) {
*parsed->dest_local_ref = conn->msc_real_ref;
- if (parsed->src_local_ref)
- *parsed->src_local_ref = conn->bsc_patched_ref;
return conn;
}
} else {