mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 08:10:08 +01:00
l3cfg: fix dns options in _init_from_connection_ip()
This commit is contained in:
parent
5efd3134e4
commit
fcfaf78c91
1 changed files with 2 additions and 2 deletions
|
|
@ -2613,10 +2613,10 @@ _init_from_connection_ip(NML3ConfigData *self, int addr_family, NMConnection *co
|
|||
}
|
||||
|
||||
idx = 0;
|
||||
while ((idx = nm_setting_ip_config_next_valid_dns_option(s_ip, i)) >= 0) {
|
||||
while ((idx = nm_setting_ip_config_next_valid_dns_option(s_ip, idx)) >= 0) {
|
||||
nm_l3_config_data_add_dns_option(self,
|
||||
addr_family,
|
||||
nm_setting_ip_config_get_dns_option(s_ip, i));
|
||||
nm_setting_ip_config_get_dns_option(s_ip, idx));
|
||||
idx++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue