diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2017-09-19 18:07:41 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-09-19 18:27:26 +0200 |
commit | 14d90026e733ed11a2022d8e06d13fa19f9ae446 (patch) | |
tree | 26b332b536b19514cd802bcf18090342a85f64db /openbsc/src/osmo-bsc_nat/bsc_nat.c | |
parent | osmo-bsc_nat: Attempt to make bsc_mgcp_find_con aware of multiple MGCP (diff) | |
download | OpenBSC-user/max/mscsplit.tar.xz OpenBSC-user/max/mscsplit.zip |
libmgcp: Pass the pointer to the mgcp list on inituser/max/mscsplit
Adjusted by Max <msuraev@sysmocom.de>
Ticket: SYS#3208
Sponsored-by: On-Waves ehf.
Change-Id: I2d51589670bb602422ec98521eec620948752e36
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c index 98e002d8a..1a6ffa2fa 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c @@ -1167,7 +1167,7 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg) con_msc = con->msc_con; /* Shortcuts for handling later */ con->msc_conf = msc_config_by_con(bsc->nat, con_msc); - con->mgcp_conf = mgcp_config_by_num(&bsc->nat->mgcp_cfgs, con->msc_conf->nr); + con->mgcp_conf = mgcp_config_by_num(bsc->nat->mgcp_cfgs, con->msc_conf->nr); con->filter_state.con_type = con_type; con->filter_state.imsi_checked = filter; @@ -1658,7 +1658,7 @@ int main(int argc, char **argv) /* * Setup the MGCP code.. */ - if (bsc_mgcp_nat_init(nat, &nat->mgcp_cfgs) != 0) + if (bsc_mgcp_nat_init(nat, nat->mgcp_cfgs) != 0) return -4; /* start control interface after reading config for |