]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If the parsing of the config file fails make sure we unlock ldap_lock.
authorJoshua Colp <jcolp@digium.com>
Fri, 18 Apr 2008 16:11:27 +0000 (16:11 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 18 Apr 2008 16:11:27 +0000 (16:11 +0000)
(closes issue #12477)
Reported by: IgorG

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114254 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_config_ldap.c

index a88e480a4c6dfc40a4a6985118057075f0e77613..376f9aff88b73cf0e398d377472683943cf874ca 100644 (file)
@@ -1364,6 +1364,7 @@ static int reload(void)
 
        if (parse_config() < 0) {
                ast_log(LOG_NOTICE, "Cannot reload LDAP RealTime driver.\n");
+               ast_mutex_unlock(&ldap_lock);
                return 0;
        }