ap: fixup incorrect return

If an RTNL address change fails -EIO should be returned, not
false (aka "success").
This commit is contained in:
James Prestwood 2020-11-02 12:17:52 -08:00 committed by Denis Kenzior
parent d03ea531de
commit 5420fdaf01
1 changed files with 1 additions and 1 deletions

View File

@ -2412,7 +2412,7 @@ static int ap_load_profile_and_dhcp(struct ap_state *ap, bool *wait_dhcp)
if (!ap->rtnl_add_cmd) {
l_error("Failed to add IPv4 address");
return false;
return -EIO;
}
ap->cleanup_ip = true;