check return value stop seg. Bug #967
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
0a103544e4
commit
9e21bc74ac
|
@ -673,6 +673,10 @@ H323Channel * MyH323Connection::CreateRealTimeLogicalChannel(const H323Capabilit
|
||||||
/* Determine the Local (A side) IP Address and port */
|
/* Determine the Local (A side) IP Address and port */
|
||||||
info = on_create_connection(GetCallReference());
|
info = on_create_connection(GetCallReference());
|
||||||
|
|
||||||
|
if (!info) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port);
|
GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port);
|
||||||
externalPort = info->port;
|
externalPort = info->port;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue