msc: Fix crash due pong timeout started from a msc reset
This is fixing a crash that is caused by the MTP link going down/up and the main routines asking to send a reset to the MSC. The sending of a reset is triggering the ping/pong timeouts. In case there is no MSC connection we could crash.
This commit is contained in:
parent
377ba4293a
commit
1a0609292c
|
@ -553,6 +553,11 @@ void msc_send_rlc(struct bsc_data *bsc,
|
|||
{
|
||||
struct msgb *msg;
|
||||
|
||||
if (bsc->msc_link_down) {
|
||||
LOGP(DMSC, LOGL_NOTICE, "Not releasing connection due lack of connection.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
msg = create_sccp_rlc(src, dst);
|
||||
if (!msg)
|
||||
return;
|
||||
|
@ -564,6 +569,11 @@ void msc_send_reset(struct bsc_data *bsc)
|
|||
{
|
||||
struct msgb *msg;
|
||||
|
||||
if (bsc->msc_link_down) {
|
||||
LOGP(DMSC, LOGL_NOTICE, "Not sending reset due lack of connection.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
msg = create_reset();
|
||||
if (!msg)
|
||||
return;
|
||||
|
|
Reference in New Issue