mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user