Merge "fix bad return value in dhcp_do_request_*"
This commit is contained in:
commit
c0df50afdb
|
@ -367,9 +367,8 @@ int dhcp_do_request_renew(const char *interface,
|
|||
return -1;
|
||||
}
|
||||
if (strcmp(prop_value, "ok") == 0) {
|
||||
fill_ip_info(interface, ipaddr, gateway, prefixLength,
|
||||
return fill_ip_info(interface, ipaddr, gateway, prefixLength,
|
||||
dns1, dns2, server, lease, vendorInfo);
|
||||
return 0;
|
||||
} else {
|
||||
snprintf(errmsg, sizeof(errmsg), "DHCP Renew result was %s", prop_value);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue