[Asterisk-cvs] asterisk/cdr cdr_odbc.c,1.7,1.8
jeremy at lists.digium.com
jeremy at lists.digium.com
Sat Jan 3 23:20:14 CST 2004
- Previous message: [Asterisk-cvs] asterisk/channels chan_h323.c,1.19,1.20
- Next message: [Asterisk-cvs] zaptel torisa.c,1.7,1.8 wcfxo.c,1.21,1.22 wcfxs.c,1.39,1.40 wct1xxp.c,1.15,1.16 wct4xxp.c,1.15,1.16 wcusb.c,1.8,1.9 wcusb.h,1.2,1.3 zaptel.c,1.53,1.54 ztd-eth.c,1.3,1.4 ztdynamic.c,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv24698
Modified Files:
cdr_odbc.c
Log Message:
prevent deadlock if no config file
Index: cdr_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_odbc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cdr_odbc.c 24 Dec 2003 03:05:03 -0000 1.7
+++ cdr_odbc.c 4 Jan 2004 05:11:53 -0000 1.8
@@ -241,7 +241,7 @@
static int odbc_load_module(void)
{
- int res;
+ int res = 0;
struct ast_config *cfg;
struct ast_variable *var;
char *tmp;
@@ -252,13 +252,13 @@
if (!cfg)
{
ast_log(LOG_WARNING, "cdr_odbc: Unable to load config for ODBC CDR's: %s\n", config);
- return 0;
+ goto out;
}
var = ast_variable_browse(cfg, "global");
if (!var) {
/* nothing configured */
- return 0;
+ goto out;
}
tmp = ast_variable_retrieve(cfg,"global","dsn");
@@ -368,6 +368,7 @@
{
ast_log(LOG_ERROR, "cdr_odbc: Unable to register ODBC CDR handling\n");
}
+out:
ast_mutex_unlock(&odbc_lock);
return res;
}
- Previous message: [Asterisk-cvs] asterisk/channels chan_h323.c,1.19,1.20
- Next message: [Asterisk-cvs] zaptel torisa.c,1.7,1.8 wcfxo.c,1.21,1.22 wcfxs.c,1.39,1.40 wct1xxp.c,1.15,1.16 wct4xxp.c,1.15,1.16 wcusb.c,1.8,1.9 wcusb.h,1.2,1.3 zaptel.c,1.53,1.54 ztd-eth.c,1.3,1.4 ztdynamic.c,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list