aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 06:11:23 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 06:11:23 +0000
commitad6e43cc6ca6e1b4896dea93dae281c29431b387 (patch)
treeef011502efdb57a1b09bb8287d2c4348b00dd78f /channels
parent23508ac7a235b40df24103748f6085c2884bc35b (diff)
check return value stop seg. Bug #967
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2328 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/h323/ast_h323.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index 2a0f14492..44e816350 100755
--- a/channels/h323/ast_h323.cpp
+++ b/channels/h323/ast_h323.cpp
@@ -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;