]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 d87776104431a6e486c855efab4d422e12cde09e..57cb46f019e2f5d2590e2076860b5d97a760b774 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;