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:
paulc 2010-06-11 13:01:59 +00:00
parent 29680d030b
commit bcfcf63b9a
1 changed files with 1 additions and 1 deletions

View File

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