mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	remove unneeded var (issue #6466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -9343,7 +9343,7 @@ static struct ast_custom_function checksipdomain_function = { | ||||
| int function_sippeer(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) | ||||
| { | ||||
| 	struct sip_peer *peer; | ||||
| 	char *peername = data, *colname; | ||||
| 	char *colname; | ||||
| 	char iabuf[INET_ADDRSTRLEN]; | ||||
|  | ||||
| 	if ((colname = strchr(data, ':'))) | ||||
| @@ -9351,7 +9351,7 @@ int function_sippeer(struct ast_channel *chan, char *cmd, char *data, char *buf, | ||||
| 	else | ||||
| 		colname = "ip"; | ||||
|  | ||||
| 	if (!(peer = find_peer(peername, NULL, 1))) | ||||
| 	if (!(peer = find_peer(data, NULL, 1))) | ||||
| 		return -1; | ||||
|  | ||||
| 	if (!strcasecmp(colname, "ip")) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user