Skip to content
Snippets Groups Projects
Commit 45818de1 authored by Mark Murawki's avatar Mark Murawki
Browse files

Merged revisions 319812 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r319812 | markm | 2011-05-19 13:59:01 -0400 (Thu, 19 May 2011) | 9 lines
  
  In cel_odbc, an uninitialized RWLIST is attempted to be locked.
  
  Added INIT and DESTROY for the RWLIST odbc_tables
  
  (closes issue #19331)
  Reported by: kobaz
  Patches: 
        odbc_cel.patch uploaded by kobaz (license 834)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@319813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b33fc4db
No related branches found
No related tags found
No related merge requests found
......@@ -751,11 +751,15 @@ static int unload_module(void)
free_config();
AST_RWLIST_UNLOCK(&odbc_tables);
AST_RWLIST_HEAD_DESTROY(&odbc_tables);
return 0;
}
static int load_module(void)
{
AST_RWLIST_HEAD_INIT(&odbc_tables);
if (AST_RWLIST_WRLOCK(&odbc_tables)) {
ast_log(LOG_ERROR, "Unable to lock column list. Load failed.\n");
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment