Check if circuits exist when executing a control command.

The isupmangler was crashing on any command.


git-svn-id: http://voip.null.ro/svn/yate@5025 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-04-24 18:57:15 +00:00
parent 8993eb5357
commit 9577b91b87
1 changed files with 1 additions and 1 deletions

View File

@ -3794,7 +3794,7 @@ bool SS7ISUP::control(NamedList& params)
if (!(cmp && toString() == cmp))
return false;
Lock mylock(this);
if (!m_remotePoint)
if (!(m_remotePoint && circuits()))
return false;
ObjList* o = circuits()->circuits().skipNull();
SignallingCircuit* cic = o ? static_cast<SignallingCircuit*>(o->get()) : 0;