aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_iax2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 2b15d056d..19066fcc7 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -824,8 +824,8 @@ static void jb_debug_output(const char *fmt, ...)
/* XXX We probably should use a mutex when working with this XXX */
-static struct chan_iax2_pvt *iaxs[IAX_MAX_CALLS];
-static ast_mutex_t iaxsl[IAX_MAX_CALLS];
+static struct chan_iax2_pvt *iaxs[IAX_MAX_CALLS + 1];
+static ast_mutex_t iaxsl[IAX_MAX_CALLS + 1];
/*!
* \brief Another container of iax2_pvt structures