Minor performance improvement parsing non-SIP/2.0 branches.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3047 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-01-31 20:27:56 +00:00
parent 2d27ec675c
commit 717d48cd77
1 changed files with 3 additions and 3 deletions

View File

@ -200,9 +200,9 @@ SIPTransaction* SIPEngine::addMessage(SIPMessage* message)
Debug(this,DebugMild,"Received message with no Via header! (sender bug)");
#endif
const NamedString* br = hl ? hl->getParam("branch") : 0;
String branch(br ? *br : String::empty());
if (!branch.startsWith("z9hG4bK"))
branch.clear();
String branch;
if (br && br->startsWith("z9hG4bK"))
branch = *br;
Lock lock(this);
SIPTransaction* forked = 0;
ObjList* l = &m_transList;