More locking fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a342626920
commit
1d22c714ce
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue