summaryrefslogtreecommitdiff
path: root/src/dns/nm-dns-manager.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-27 07:58:22 +0200
committerThomas Haller <thaller@redhat.com>2018-09-27 08:01:35 +0200
commita4de56a3d14fa5130fd8681f9ebc93c520592dcb (patch)
treea4f4ec43a5f2a48d3d774048760860f8811eeac6 /src/dns/nm-dns-manager.c
parentbfacd24f8353c1f1fd24a2ea5207f6f64cf82774 (diff)
downloadNetworkManager-a4de56a3d14fa5130fd8681f9ebc93c520592dcb.tar.gz
dns: fix sort order of DNS configurations by type
Fixes: d7017005e1ffe169ee110bfccfb01fa2345ceb13
Diffstat (limited to 'src/dns/nm-dns-manager.c')
-rw-r--r--src/dns/nm-dns-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns/nm-dns-manager.c b/src/dns/nm-dns-manager.c
index fc1545e521..5ef9a6b83f 100644
--- a/src/dns/nm-dns-manager.c
+++ b/src/dns/nm-dns-manager.c
@@ -323,8 +323,8 @@ _ip_config_lst_cmp (const CList *a_lst,
NM_CMP_DIRECT (nm_ip_config_get_dns_priority (a->ip_config),
nm_ip_config_get_dns_priority (b->ip_config));
- /* Sort also according to type */
- NM_CMP_DIRECT (a->ip_config_type, b->ip_config_type);
+ /* Sort according to type (descendingly) */
+ NM_CMP_FIELD (b, a, ip_config_type);
return 0;
}