mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-30 20:37:26 +01:00 
			
		
		
		
	 e70a241f34
			
		
	
	
		e70a241f34
		
	
	
	
	
		
			
			The country IE can sometimes have a zero pad byte at the end for alignment. This was not being checked for which caused the loop to go past the end of the IE and print an entry for channel 0 (the pad byte) plus some garbage data. Fix this by checking for the pad byte explicitly which skips the print and terminates the loop.