[asterisk-commits] markm: branch 1.8 r319812 - /branches/1.8/cel/cel_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 19 12:59:05 CDT 2011
Author: markm
Date: Thu May 19 12:59:01 2011
New Revision: 319812
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319812
Log:
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)
Modified:
branches/1.8/cel/cel_odbc.c
Modified: branches/1.8/cel/cel_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/cel/cel_odbc.c?view=diff&rev=319812&r1=319811&r2=319812
==============================================================================
--- branches/1.8/cel/cel_odbc.c (original)
+++ branches/1.8/cel/cel_odbc.c Thu May 19 12:59:01 2011
@@ -751,11 +751,15 @@
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;
More information about the asterisk-commits
mailing list