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.
This commit is contained in:
parent
0958938d4e
commit
ce97a06fa3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue