rdisc: clear domain list when updating from RA

Appears to be a simple oversight.  If the IPv6 router changes the
domain list, old domains could stick around.
This commit is contained in:
Dan Williams 2013-12-19 10:58:46 -06:00
parent 5e3c55eb28
commit 5f1a62877c

View file

@ -3319,6 +3319,9 @@ rdisc_config_changed (NMRDisc *rdisc, NMRDiscConfigMap changed, NMDevice *device
}
if (changed & NM_RDISC_CONFIG_DNS_DOMAINS) {
/* Rebuild domain list from router discovery cache. */
nm_ip6_config_reset_domains (priv->ac_ip6_config);
for (i = 0; i < rdisc->dns_domains->len; i++) {
NMRDiscDNSDomain *discovered_domain = &g_array_index (rdisc->dns_domains, NMRDiscDNSDomain, i);