mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 08:50:07 +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)
This commit is contained in:
parent
ee4e679bc7
commit
d535da216c
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,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