diff options
| author | Michael Biebl <biebl@debian.org> | 2022-10-18 11:57:57 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2022-10-18 11:57:57 +0200 |
| commit | ac9380934a9c532c14422ee15b4869b2d5da14af (patch) | |
| tree | b5d020e8e72a2f3129c9ab0b311fd18c2a54918e /src/core/dns | |
| parent | 87f7575d7268053774dacffc4bdd45df3f26b30b (diff) | |
| parent | 9f101839d9e64df832e9e43c5181887369c46a7e (diff) | |
Update upstream source from tag 'upstream/1.40.2'
Update to upstream version '1.40.2' with Debian dir 1072992b4531d6c782ca5c453f83a2df3ad6390a
Diffstat (limited to 'src/core/dns')
| -rw-r--r-- | src/core/dns/nm-dns-manager.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/dns/nm-dns-manager.c b/src/core/dns/nm-dns-manager.c index 1e54452a..a2fead3f 100644 --- a/src/core/dns/nm-dns-manager.c +++ b/src/core/dns/nm-dns-manager.c @@ -2039,8 +2039,15 @@ nm_dns_manager_set_ip_config(NMDnsManager *self, if (!ip_data) { ip_data = _dns_config_ip_data_new(data, addr_family, source_tag, l3cd, ip_config_type); - if (!any_removed) + priv->ip_data_lst_need_sort = TRUE; + if (!any_removed) { + /* `any_removed` tracks whether we deleted any ip_data. If that happened, + * we already compared the old and new l3cds and set `changed` accordingly. + * Here we only need to set `changed` if we are adding a new ip_data without + * removing the old one. + */ changed = TRUE; + } } else { ip_data->ip_config_type = ip_config_type; changed = TRUE; |