Index: res_config_mysql.c =================================================================== RCS file: /usr/cvsroot/asterisk-addons/res_config_mysql.c,v retrieving revision 1.6 diff -u -r1.6 res_config_mysql.c --- res_config_mysql.c 27 Jan 2005 02:55:26 -0000 1.6 +++ res_config_mysql.c 28 Jan 2005 18:02:45 -0000 @@ -8,6 +8,11 @@ * * res_config_mysql.c * + * 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) {