dns: fix falling back in the resolv.conf methods

This commit is contained in:
Jan Alexander Steffens (heftig) 2015-05-06 20:49:57 +02:00 committed by Dan Williams
parent 02877dcd30
commit 59b64ffa82

View file

@ -782,13 +782,16 @@ update_dns (NMDnsManager *self,
#ifdef NETCONFIG_PATH
if (success == FALSE) {
g_clear_error (error);
success = dispatch_netconfig (searches, nameservers,
nis_domain, nis_servers, error);
}
#endif
if (success == FALSE)
if (success == FALSE) {
g_clear_error (error);
success = update_resolv_conf (searches, nameservers, error);
}
/* signal that resolv.conf was changed */
if (success)