mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 13:17:25 +01:00 
			
		
		
		
	ap: Fix spurious warning message
The warning message would be printed even if no setting was present
Fixes: ac976c6f7147 ("ap: Remove support for deprecated APRanges setting")
			
			
This commit is contained in:
		
							parent
							
								
									72d35fc491
								
							
						
					
					
						commit
						7f2aa40bba
					
				
							
								
								
									
										2
									
								
								src/ap.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								src/ap.c
									
									
									
									
									
								
							| @ -4146,7 +4146,7 @@ static int ap_init(void) | ||||
| 		global_addr4_strs = | ||||
| 			l_settings_get_string_list(settings, "IPv4", | ||||
| 							"APAddressPool", ','); | ||||
| 		if (!global_addr4_strs || !global_addr4_strs[0]) { | ||||
| 		if (global_addr4_strs && !global_addr4_strs[0]) { | ||||
| 			l_error("Can't parse the [IPv4].APAddressPool " | ||||
| 					"setting as a string list"); | ||||
| 			l_strv_free(global_addr4_strs); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Denis Kenzior
						Denis Kenzior