[svn-commits] trunk - r7856 /trunk/db.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sat Jan 7 13:30:45 CST 2006


Author: markster
Date: Sat Jan  7 13:30:44 2006
New Revision: 7856

URL: http://svn.digium.com/view/asterisk?rev=7856&view=rev
Log:
Fix potential deadlock (bug #6169)


Modified:
    trunk/db.c

Modified: trunk/db.c
URL: http://svn.digium.com/view/asterisk/trunk/db.c?rev=7856&r1=7855&r2=7856&view=diff
==============================================================================
--- trunk/db.c (original)
+++ trunk/db.c Sat Jan  7 13:30:44 2006
@@ -122,8 +122,10 @@
 	}
 	
 	ast_mutex_lock(&dblock);
-	if (dbinit()) 
+	if (dbinit()) {
+		ast_mutex_unlock(&dblock);
 		return -1;
+	}
 	
 	memset(&key, 0, sizeof(key));
 	memset(&data, 0, sizeof(data));



More information about the svn-commits mailing list