make sure that iaxs gets initialized (bug #4856)
authorRussell Bryant <russell@russellbryant.com>
Mon, 1 Aug 2005 14:46:14 +0000 (14:46 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 1 Aug 2005 14:46:14 +0000 (14:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6251 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index cdb640e..57dafa0 100755 (executable)
@@ -9328,6 +9328,8 @@ int load_module(void)
                ast_log(LOG_WARNING, "Unable to open IAX timing interface: %s\n", strerror(errno));
 #endif         
 
+       memset(iaxs, 0, sizeof(iaxs));
+
        for (x=0;x<IAX_MAX_CALLS;x++)
                ast_mutex_init(&iaxsl[x]);