mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Fix potential deadlock (bug #6169)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
db.c
4
db.c
@@ -122,8 +122,10 @@ int ast_db_deltree(const char *family, const char *keytree)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ast_mutex_lock(&dblock);
|
ast_mutex_lock(&dblock);
|
||||||
if (dbinit())
|
if (dbinit()) {
|
||||||
|
ast_mutex_unlock(&dblock);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&key, 0, sizeof(key));
|
memset(&key, 0, sizeof(key));
|
||||||
memset(&data, 0, sizeof(data));
|
memset(&data, 0, sizeof(data));
|
||||||
|
|||||||
Reference in New Issue
Block a user