diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 16:11:27 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-18 16:11:27 +0000 |
commit | c80bbab204a869376dfe220188e8f66100aff73d (patch) | |
tree | 6b73d8e409b3ec054c3c630043e3b5399cca063d /res | |
parent | 559a50aedd2bde81586c33d009ac4c44eb3ee373 (diff) |
If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue #12477)
Reported by: IgorG
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114254 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_config_ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index a88e480a4..376f9aff8 100644 --- a/res/res_config_ldap.c +++ b/res/res_config_ldap.c @@ -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; } |