From ce97a06fa385c97715bb52b34cc571789e9c79e5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 15 Jun 2015 09:44:39 +0200 Subject: 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. --- openbsc/src/osmo-bsc/osmo_bsc_msc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src') 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) { -- cgit v1.2.3