Fixed bug: check for valid message returned from parsing before setting data member.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6470 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
6908f576cd
commit
ef15153c1f
|
@ -3415,8 +3415,10 @@ int YateSIPUDPTransport::process()
|
|||
}
|
||||
|
||||
SIPMessage* msg = SIPMessage::fromParsing(0,b,res);
|
||||
msg->msgPrint = print;
|
||||
receiveMsg(msg);
|
||||
if (msg) {
|
||||
msg->msgPrint = print;
|
||||
receiveMsg(msg);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue