[svn-commits] russell: branch 1.8 r318057 - /branches/1.8/res/res_config_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat May 7 18:35:43 CDT 2011


Author: russell
Date: Sat May  7 18:35:37 2011
New Revision: 318057

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=318057
Log:
res_config_curl: fix a crash with static realtime.

(closes issue #18413)
Reported by: jmls
Patches:
      20101202__issue18413.diff.txt uploaded by tilghman (license 14)
Tested by: jmls

Modified:
    branches/1.8/res/res_config_curl.c

Modified: branches/1.8/res/res_config_curl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_config_curl.c?view=diff&rev=318057&r1=318056&r2=318057
==============================================================================
--- branches/1.8/res/res_config_curl.c (original)
+++ branches/1.8/res/res_config_curl.c Sat May  7 18:35:37 2011
@@ -583,7 +583,7 @@
 				return NULL;
 		}
 
-		if (strcmp(category, cur_cat) || last_cat_metric != cat_metric) {
+		if (!cat || strcmp(category, cur_cat) || last_cat_metric != cat_metric) {
 			if (!(cat = ast_category_new(category, "", 99999)))
 				break;
 			cur_cat = category;




More information about the svn-commits mailing list