[asterisk-commits] file: trunk r114254 - /trunk/res/res_config_ldap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 18 11:11:28 CDT 2008


Author: file
Date: Fri Apr 18 11:11:27 2008
New Revision: 114254

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114254
Log:
If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue #12477)
Reported by: IgorG

Modified:
    trunk/res/res_config_ldap.c

Modified: trunk/res/res_config_ldap.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_ldap.c?view=diff&rev=114254&r1=114253&r2=114254
==============================================================================
--- trunk/res/res_config_ldap.c (original)
+++ trunk/res/res_config_ldap.c Fri Apr 18 11:11:27 2008
@@ -1364,6 +1364,7 @@
 
 	if (parse_config() < 0) {
 		ast_log(LOG_NOTICE, "Cannot reload LDAP RealTime driver.\n");
+		ast_mutex_unlock(&ldap_lock);
 		return 0;
 	}		
 




More information about the asterisk-commits mailing list