mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	chan_iax2.c: Ensure all IEs are displayed when dumping frame contents.
When IAX2 debugging was enabled (`iax2 set debug on`), if the last IE
in a frame was one that may not have any data - such as the CALLTOKEN
IE in an NEW request - it was not getting displayed.
(cherry picked from commit 19507ae160)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							27f3df7139
						
					
				
				
					commit
					cd39daaed1
				
			| @@ -424,7 +424,7 @@ static void dump_ies(unsigned char *iedata, int len) | ||||
|  | ||||
| 	if (len < 2) | ||||
| 		return; | ||||
| 	while(len > 2) { | ||||
| 	while(len >= 2) { | ||||
| 		ie = iedata[0]; | ||||
| 		ielen = iedata[1]; | ||||
| 		if (ielen + 2> len) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user