Merge "fix bad return value in dhcp_do_request_*"

This commit is contained in:
Colin Cross 2013-06-10 21:57:21 +00:00 committed by Gerrit Code Review
commit c0df50afdb
1 changed files with 1 additions and 2 deletions

View File

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