ap: fixup incorrect return
If an RTNL address change fails -EIO should be returned, not false (aka "success").
This commit is contained in:
parent
d03ea531de
commit
5420fdaf01
2
src/ap.c
2
src/ap.c
|
@ -2412,7 +2412,7 @@ static int ap_load_profile_and_dhcp(struct ap_state *ap, bool *wait_dhcp)
|
||||||
|
|
||||||
if (!ap->rtnl_add_cmd) {
|
if (!ap->rtnl_add_cmd) {
|
||||||
l_error("Failed to add IPv4 address");
|
l_error("Failed to add IPv4 address");
|
||||||
return false;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
ap->cleanup_ip = true;
|
ap->cleanup_ip = true;
|
||||||
|
|
Loading…
Reference in New Issue