aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-15 09:44:39 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-15 09:47:45 +0200
commitce97a06fa385c97715bb52b34cc571789e9c79e5 (patch)
tree9788a86ce3afd68d39e796d2359920042e84ef3b
parent0958938d4ea32b4eff288b4b1369384f8eaddb93 (diff)
bsc: Attempt to fix crash when sending a SCCP CREF message
There was no context for the SCCP CREF message and this means that the msc_con was a plain NULL pointer that was dereferenced and the application would crash. Use the new API to pass the incoming MSC Connection which sould be used for the SCCP CREF message as context. The code has not been fed with an actual SCCP CR message.
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_msc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_msc.c b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
index d3507d5bf..129b23e13 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_msc.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
@@ -307,7 +307,7 @@ static int ipaccess_a_fd_cb(struct osmo_fd *bfd)
osmo_timer_del(&data->pong_timer);
}
} else if (hh->proto == IPAC_PROTO_SCCP) {
- sccp_system_incoming(msg);
+ sccp_system_incoming_ctx(msg, data->msc_con);
} else if (hh->proto == IPAC_PROTO_MGCP_OLD) {
mgcp_forward(data, msg);
} else if (hh->proto == IPAC_PROTO_OSMO) {