We must not read ipconfig data from file if there is already a valid
address that was set by service set_property().
Fixes BMC#22767
service = __connman_service_lookup_from_network(network);
- __connman_service_read_ip4config(service);
-
ipconfig = __connman_service_get_ip4config(service);
+ if (__connman_ipconfig_get_local(ipconfig) == NULL)
+ __connman_service_read_ip4config(service);
+
set_configuration(network);
err = __connman_ipconfig_address_add(ipconfig);
if (service == NULL)
return -EINVAL;
- __connman_service_read_ip6config(service);
+ if (__connman_ipconfig_get_local(ipconfig_ipv6) == NULL)
+ __connman_service_read_ip6config(service);
err = __connman_ipconfig_address_add(ipconfig_ipv6);
if (err < 0) {