mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -132,7 +132,7 @@ static int morsecode_exec(struct ast_channel *chan, const char *data)
 | 
			
		||||
	/* Use variable MORESEDITLEN, if set (else 80) */
 | 
			
		||||
	ast_channel_lock(chan);
 | 
			
		||||
	ditlenc = pbx_builtin_getvar_helper(chan, "MORSEDITLEN");
 | 
			
		||||
	if (ast_strlen_zero(ditlenc) || (sscanf(ditlenc, "%d", &ditlen) != 1)) {
 | 
			
		||||
	if (ast_strlen_zero(ditlenc) || (sscanf(ditlenc, "%30d", &ditlen) != 1)) {
 | 
			
		||||
		ditlen = 80;
 | 
			
		||||
	}
 | 
			
		||||
	ast_channel_unlock(chan);
 | 
			
		||||
@@ -140,7 +140,7 @@ static int morsecode_exec(struct ast_channel *chan, const char *data)
 | 
			
		||||
	/* Use variable MORSETONE, if set (else 800) */
 | 
			
		||||
	ast_channel_lock(chan);
 | 
			
		||||
	tonec = pbx_builtin_getvar_helper(chan, "MORSETONE");
 | 
			
		||||
	if (ast_strlen_zero(tonec) || (sscanf(tonec, "%d", &tone) != 1)) {
 | 
			
		||||
	if (ast_strlen_zero(tonec) || (sscanf(tonec, "%30d", &tone) != 1)) {
 | 
			
		||||
		tone = 800;
 | 
			
		||||
	}
 | 
			
		||||
	ast_channel_unlock(chan);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user