9
0
Fork 0

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:
Holger Hans Peter Freyther 2011-01-21 12:50:02 +01:00
parent 377ba4293a
commit 1a0609292c
1 changed files with 10 additions and 0 deletions

View File

@ -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;