check return value stop seg. Bug #967
authorJeremy McNamara <jj@nufone.net>
Thu, 4 Mar 2004 06:11:23 +0000 (06:11 +0000)
committerJeremy McNamara <jj@nufone.net>
Thu, 4 Mar 2004 06:11:23 +0000 (06:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/ast_h323.cpp

index 2a0f144..44e8163 100755 (executable)
@@ -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;