3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

ap: Fix spurious warning message

The warning message would be printed even if no setting was present

Fixes: ac976c6f71 ("ap: Remove support for deprecated APRanges setting")
This commit is contained in:
Denis Kenzior 2022-10-24 11:03:08 -05:00
parent 72d35fc491
commit 7f2aa40bba

View File

@ -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);