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:
Jeremy McNamara 2004-03-04 06:11:23 +00:00
parent 0a103544e4
commit 9e21bc74ac
1 changed files with 4 additions and 0 deletions

View File

@ -673,6 +673,10 @@ H323Channel * MyH323Connection::CreateRealTimeLogicalChannel(const H323Capabilit
/* Determine the Local (A side) IP Address and port */
info = on_create_connection(GetCallReference());
if (!info) {
return NULL;
}
GetControlChannel().GetLocalAddress().GetIpAndPort(externalIpAddress, port);
externalPort = info->port;