More locking fixes
authorMark Spencer <markster@digium.com>
Mon, 19 May 2003 01:07:06 +0000 (01:07 +0000)
committerMark Spencer <markster@digium.com>
Mon, 19 May 2003 01:07:06 +0000 (01:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1039 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c
channels/chan_iax2.c

index 1470f54..098cd4e 100755 (executable)
@@ -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;
index 04b0bca..a2bdc2c 100755 (executable)
@@ -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) {