summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-09-09 18:41:11 +0200
committerThomas Haller <thaller@redhat.com>2015-09-09 18:41:11 +0200
commitbbf56bf286c36aaf8e32bae016da5bcf3cd38c47 (patch)
treee2be38e728a416e607d6a7d0b52bc338f81b6bba
parent28361e9238a33154b1e08edcd069dc6e5a0f19d6 (diff)
downloadNetworkManager-bbf56bf286c36aaf8e32bae016da5bcf3cd38c47.tar.gz
dns: fix bug setting dns-mode
Fixes: 18d2825ceb9fe694689746e01a6bfb0bb4f2ee09
-rw-r--r--src/dns-manager/nm-dns-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c
index 97514ef1dc..2ea9d430e4 100644
--- a/src/dns-manager/nm-dns-manager.c
+++ b/src/dns-manager/nm-dns-manager.c
@@ -1246,7 +1246,7 @@ init_resolv_conf_mode (NMDnsManager *self)
g_clear_object (&priv->plugin);
mode = nm_config_data_get_dns_mode (nm_config_get_data (priv->config));
- if (g_strcmp0 (mode, "none")) {
+ if (!g_strcmp0 (mode, "none")) {
priv->resolv_conf_mode = NM_DNS_MANAGER_RESOLV_CONF_UNMANAGED;
goto out;
}