mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 100793 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r100793 | crichter | 2008-01-29 11:36:19 +0100 (Di, 29 Jan 2008) | 1 line fixed potential segfault in misdn show channels CLI command ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -1255,6 +1255,15 @@ static char *handle_cli_misdn_show_channels(struct ast_cli_entry *e, int cmd, st | ||||
| 	for (; help; help = help->next) { | ||||
| 		struct misdn_bchannel *bc = help->bc;    | ||||
| 		struct ast_channel *ast = help->ast; | ||||
| 		if (!ast) { | ||||
| 			if (!bc) { | ||||
| 				ast_cli(a->fd, "chan_list obj. with l3id:%x has no bc and no ast Leg\n", help->l3id); | ||||
| 				continue; | ||||
| 			} | ||||
| 			ast_cli(a->fd, "bc with pid:%d has no Ast Leg\n", bc->pid); | ||||
| 			continue; | ||||
| 		} | ||||
|  | ||||
| 		if (misdn_debug[0] > 2) | ||||
| 			ast_cli(a->fd, "Bc:%p Ast:%p\n", bc, ast); | ||||
| 		if (bc) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user