[Asterisk-cvs] asterisk-addons res_config_mysql.c,1.6,1.7
markster at lists.digium.com
markster at lists.digium.com
Fri Jan 28 16:40:42 CST 2005
Update of /usr/cvsroot/asterisk-addons
In directory mongoose.digium.com:/tmp/cvs-serv19907
Modified Files:
res_config_mysql.c
Log Message:
Fix res_config_mysql seg (bug #3446)
Index: res_config_mysql.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/res_config_mysql.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- res_config_mysql.c 27 Jan 2005 02:55:26 -0000 1.6
+++ res_config_mysql.c 28 Jan 2005 22:42:36 -0000 1.7
@@ -8,6 +8,11 @@
*
* res_config_mysql.c <mysql plugin for RealTime configuration engine >
*
+ * v1.7 - (01-28-05) - Fixed non-initialization of ast_category struct
+ * in realtime_multi_mysql function which caused segfault.
+ *
+ * v1.6 - (00-00-00) - Skipped to bring comments into sync with version number in CVS.
+ *
* v1.5.1 - (01-26-05) - Added better(?) locking stuff
*
* v1.5 - (01-26-05) - Brought up to date with new config.h changes (bug #3406)
@@ -242,6 +247,11 @@
while((row = mysql_fetch_row(result))) {
var = NULL;
+ cat = ast_category_new("");
+ if(!cat) {
+ ast_log(LOG_WARNING, "Out of memory!\n");
+ continue;
+ }
for(i = 0; i < numFields; i++) {
stringp = row[i];
while(stringp) {
More information about the svn-commits
mailing list