mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue #12477) Reported by: IgorG git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user