mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@318057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -583,7 +583,7 @@ static struct ast_config *config_curl(const char *url, const char *unused, const | ||||
| 				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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user