lc not found - it's warning, not error,
authorAlexandr Anikin <may@telecom-service.ru>
Sun, 13 Feb 2011 10:50:22 +0000 (10:50 +0000)
committerAlexandr Anikin <may@telecom-service.ru>
Sun, 13 Feb 2011 10:50:22 +0000 (10:50 +0000)
change malloc to ast_calloc again

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@307713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/ooh323c/src/ooCmdChannel.c
addons/ooh323c/src/ooLogChan.c

index d88ac79..ff39882 100644 (file)
@@ -56,7 +56,7 @@ int ooCreateCallCmdConnection(OOH323CallData* call)
 
     OOTRACEINFO2("INFO: create cmd connect for call: %lx\n", call);
 
-   call->CmdChanLock = malloc(sizeof(ast_mutex_t));
+   call->CmdChanLock = ast_calloc(1, sizeof(ast_mutex_t));
    ast_mutex_init(call->CmdChanLock);
 
 
index b230ede..c3b5c8f 100644 (file)
@@ -124,7 +124,7 @@ OOLogicalChannel* ooFindLogicalChannelByLogicalChannelNo(OOH323CallData *call,
    OOLogicalChannel *pLogicalChannel=NULL;
    if(!call->logicalChans)
    {
-      OOTRACEERR3("ERROR: No Open LogicalChannels - Failed "
+      OOTRACEWARN3("ERROR: No Open LogicalChannels - Failed "
                   "FindLogicalChannelByChannelNo (%s, %s\n", call->callType,
                    call->callToken);
       return NULL;