mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 14:40:46 +02:00
dns: fix _dns_manager_set_ip_config() for missing device
Fixes: 395665902b ('dns: don't apply DNS configuration for external connections')
This commit is contained in:
parent
e2eb242c07
commit
adaeb7a872
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,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