diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-03-23 18:49:15 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-05-14 15:22:50 +0200 |
commit | 14b6e330e268f60678e336df4a6dce5acf62af69 (patch) | |
tree | df13f19ebc33c3869d6ff8149f7e5d5d92ae6ab9 /src/dns | |
parent | db80d5f62a1edf39c5970887ef7b9ec62dd4163f (diff) | |
download | NetworkManager-14b6e330e268f60678e336df4a6dce5acf62af69.tar.gz |
dns: dnsmasq: fix adding multiple domains
Fixes: e91f1a7d2a6b8400b6b331d5b72287dcb5164a39
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/nm-dns-dnsmasq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns/nm-dns-dnsmasq.c b/src/dns/nm-dns-dnsmasq.c index d075307867..1f3a58e477 100644 --- a/src/dns/nm-dns-dnsmasq.c +++ b/src/dns/nm-dns-dnsmasq.c @@ -258,8 +258,8 @@ add_ip_config (NMDnsDnsmasq *self, if (n == 0) { /* If not searches, use any domains */ n = nm_ip_config_get_num_domains (ip_config); - domain = nm_utils_parse_dns_domain (nm_ip_config_get_domain (ip_config, i), NULL); for (i = 0; i < n; i++) { + domain = nm_utils_parse_dns_domain (nm_ip_config_get_domain (ip_config, i), NULL); add_dnsmasq_nameserver (self, servers, ip_addr_to_string_buf, |