Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9273/channels

Modified Files:
      Tag: v1-0
        chan_iax2.c 
Log Message:
make sure iaxs gets initialized (bug #4856)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.188.2.20
retrieving revision 1.188.2.21
diff -u -d -r1.188.2.20 -r1.188.2.21
--- chan_iax2.c 31 May 2005 12:58:08 -0000      1.188.2.20
+++ chan_iax2.c 1 Aug 2005 14:48:26 -0000       1.188.2.21
@@ -7477,6 +7477,8 @@
                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]);
        

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to