Fixed a check in ysigchan component creation (probably harmless).
Bug spotted by Allan Sandfeld Jensen. git-svn-id: http://voip.null.ro/svn/yate@3374 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
29680d030b
commit
bcfcf63b9a
|
@ -657,7 +657,7 @@ SignallingComponent* SigFactory::create(const String& type, const NamedList& nam
|
|||
DDebug(&plugin,DebugAll,"SigFactory::create('%s','%s') config=%p",
|
||||
type.c_str(),name.c_str(),config);
|
||||
int compType = type.toInteger(s_compClass,-1);
|
||||
if (type < 0)
|
||||
if (compType < 0)
|
||||
return 0;
|
||||
if (!config) {
|
||||
NamedList sec(name);
|
||||
|
|
Loading…
Reference in New Issue