diff --git a/apps/app_queue.c b/apps/app_queue.c index 1470f54f16719d78d100cf3f5e65a0d9a780d302..098cd4e09969a50c898db4fbe42f40722b3dd53f 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -767,6 +767,7 @@ static void reload_queues(void) if (q) { /* Initialize it */ memset(q, 0, sizeof(struct ast_call_queue)); + ast_pthread_mutex_init(&q->lock); strncpy(q->name, cat, sizeof(q->name)); new = 1; } else new = 0; diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 04b0bcafaad5ca1a72e3e2d44c83110059625190..a2bdc2c03028b8bb8272733e31889b27f382d9a2 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -5224,7 +5224,7 @@ static struct iax2_dpcache *find_cache(struct ast_channel *chan, char *data, cha /* We found an entry that matches us! */ if (!strcmp(dp->peercontext, data) && !strcmp(dp->exten, exten)) break; - perv = dp; + prev = dp; dp = next; } if (!dp) {