diff options
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)
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.
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)
} 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) {