mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 06:50:35 +01:00
device: fix stale pointer in nm_device_get_hostname_from_dns_lookup()
Fixes: 09c8387114 ('policy: use the hostname setting')
https://bugzilla.redhat.com/show_bug.cgi?id=1917713
This commit is contained in:
parent
4367785007
commit
e2d04e18d5
1 changed files with 1 additions and 1 deletions
|
|
@ -17714,7 +17714,7 @@ nm_device_get_hostname_from_dns_lookup(NMDevice *self, int addr_family, gboolean
|
|||
* the resolution with the new address */
|
||||
if (address_changed) {
|
||||
nm_clear_g_cancellable(&resolver->cancellable);
|
||||
nm_g_object_unref(resolver->address);
|
||||
g_clear_object(&resolver->address);
|
||||
resolver->state = RESOLVER_WAIT_ADDRESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue