udhcpc6: ignore invalid OPTION_IAADDR
Signed-off-by: David Decotigny <ddecotig@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
				
					committed by
					
						
						Denys Vlasenko
					
				
			
			
				
	
			
			
			
						parent
						
							747162109f
						
					
				
				
					commit
					a174c791ec
				
			@@ -287,6 +287,10 @@ static void option_to_env(uint8_t *option, uint8_t *option_end)
 | 
			
		||||
 * |                        valid-lifetime                         |
 | 
			
		||||
 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 | 
			
		||||
 */
 | 
			
		||||
			/* Make sure payload contains an address */
 | 
			
		||||
			if (option[3] < 24)
 | 
			
		||||
				break;
 | 
			
		||||
 | 
			
		||||
			sprint_nip6(ipv6str, option + 4);
 | 
			
		||||
			*new_env() = xasprintf("ipv6=%s", ipv6str);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user