From 79db4928544bd20a1cb259847d3606d0ca03dbdd Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 20 Jan 2010 16:30:06 -0800 Subject: [PATCH] ifcfg-rh: ensure IPv6 addresses are cleared when none get written out --- system-settings/plugins/ifcfg-rh/writer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system-settings/plugins/ifcfg-rh/writer.c b/system-settings/plugins/ifcfg-rh/writer.c index 767c35243..7f9d806b8 100644 --- a/system-settings/plugins/ifcfg-rh/writer.c +++ b/system-settings/plugins/ifcfg-rh/writer.c @@ -1253,6 +1253,9 @@ write_ip6_setting (NMConnection *connection, shvarFile *ifcfg, GError **error) svSetValue (ifcfg, "IPV6ADDR_SECONDARIES", ip_str2->str, FALSE); g_string_free (ip_str1, TRUE); g_string_free (ip_str2, TRUE); + } else { + svSetValue (ifcfg, "IPV6ADDR", NULL, FALSE); + svSetValue (ifcfg, "IPV6ADDR_SECONDARIES", NULL, FALSE); } /* Write out DNS - 'DNS' key is used both for IPv4 and IPv6 */