]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Unlock the minivmlock when no configuration is found. (issue #9814 reported by eliel)
authorJoshua Colp <jcolp@digium.com>
Sat, 26 May 2007 19:35:33 +0000 (19:35 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 26 May 2007 19:35:33 +0000 (19:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66225 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_minivm.c

index cbb7a750fbdd7dc053cb5563fd91ea26ac86521d..d65a8d60fb3f4e3c6bd5599541d3f86b5ca0a4ab 100644 (file)
@@ -2515,6 +2515,7 @@ static int load_config(void)
        /* Make sure we could load configuration file */
        if (!cfg) {
                ast_log(LOG_WARNING, "Failed to load configuration file. Module activated with default settings.\n");
+               ast_mutex_unlock(&minivmlock);
                return 0;
        }