dns: fix use-after-free in plugin error path

This commit is contained in:
Dan Williams 2010-10-07 12:04:41 -05:00
parent 82dd97c4b7
commit aeeac548a8

View file

@ -572,7 +572,7 @@ update_dns (NMDnsManager *self,
priv = NM_DNS_MANAGER_GET_PRIVATE (self);
if (iface) {
if (iface && (iface != priv->last_iface)) {
g_free (priv->last_iface);
priv->last_iface = g_strdup (iface);
}