mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 12:00:40 +01:00
dns: fix _dns_manager_set_ip_config() for missing device
Fixes:395665902b('dns: don't apply DNS configuration for external connections') (cherry picked from commitadaeb7a872) (cherry picked from commitd535da216c)
This commit is contained in:
parent
4ddfc5c14b
commit
836512351d
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ _dns_manager_set_ip_config (NMDnsManager *dns_manager,
|
|||
NMDnsIPConfigType ip_config_type,
|
||||
NMDevice *device)
|
||||
{
|
||||
if (nm_device_sys_iface_state_is_external (device)) {
|
||||
if (device && nm_device_sys_iface_state_is_external (device)) {
|
||||
nm_dns_manager_set_ip_config (dns_manager, ip_config, NM_DNS_IP_CONFIG_TYPE_REMOVED);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue