Fix lock typo that should be unlock in cel_sqlite_custom reload.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 14 Feb 2012 18:16:26 +0000 (18:16 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 14 Feb 2012 18:16:26 +0000 (18:16 +0000)
(closes issue ASTERISK-19356)
Reported by: Alex Villacis Lasso
Patches:
      asterisk-1.8.9.2-cel_sqlite3_custom-fix-reload-locking-typo.patch (license #5617) patch uploaded by Alex Villacis Lasso

Review: https://reviewboard.asterisk.org/r/1740/
........

Merged revisions 355319 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 355320 from http://svn.asterisk.org/svn/asterisk/branches/10

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

cel/cel_sqlite3_custom.c

index e0b0225..444df77 100644 (file)
@@ -353,7 +353,7 @@ static int reload(void)
 
        ast_mutex_lock(&lock);
        res = load_config(1);
-       ast_mutex_lock(&lock);
+       ast_mutex_unlock(&lock);
 
        return res;
 }