mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 23:39:35 +00:00 
			
		
		
		
	stomp on seg on logger reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										2
									
								
								logger.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								logger.c
									
									
									
									
									
								
							| @@ -125,7 +125,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l | |||||||
| 	chan = malloc(sizeof(struct logchannel)); | 	chan = malloc(sizeof(struct logchannel)); | ||||||
|  |  | ||||||
| 	if (chan) { | 	if (chan) { | ||||||
| 		memset(chan, 0, sizeof(chan)); | 		memset(chan, 0, sizeof(struct logchannel)); | ||||||
| 		if (!strcasecmp(channel, "console")) { | 		if (!strcasecmp(channel, "console")) { | ||||||
| 		    chan->console = 1; | 		    chan->console = 1; | ||||||
| 		} else if (!strncasecmp(channel, "syslog", 6)) { | 		} else if (!strncasecmp(channel, "syslog", 6)) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user