Must be inside lock when finding start
authorMark Spencer <markster@digium.com>
Thu, 17 Jun 2004 02:42:42 +0000 (02:42 +0000)
committerMark Spencer <markster@digium.com>
Thu, 17 Jun 2004 02:42:42 +0000 (02:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3231 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index d877761..57cb46f 100755 (executable)
@@ -961,10 +961,11 @@ static struct ast_conference *find_conf(struct ast_channel *chan, char *confno,
 {
        struct ast_config *cfg;
        struct ast_variable *var;
-       struct ast_conference *cnf = confs;
+       struct ast_conference *cnf;
 
        /* Check first in the conference list */
        ast_mutex_lock(&conflock);
+       cnf = confs;
        while (cnf) {
                if (!strcmp(confno, cnf->confno)) 
                        break;