mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 08:58:28 +02:00
dns: fix use-after-free in plugin error path
This commit is contained in:
parent
82dd97c4b7
commit
aeeac548a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue