mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 18:20:37 +01:00
device: fix crash in nm_device_reactivate_ip_config()
Fixes: 87f69f0050 ('device: merge nm_device_reactivate_ip_config() implementations for IPv4/IPv6')
This commit is contained in:
parent
affff881e2
commit
11068cf936
1 changed files with 2 additions and 2 deletions
|
|
@ -12263,10 +12263,10 @@ nm_device_reactivate_ip_config(NMDevice * self,
|
|||
nm_device_get_route_metric(self, AF_INET6));
|
||||
}
|
||||
|
||||
method_old = nm_setting_ip_config_get_method(s_ip_old)
|
||||
method_old = (s_ip_old ? nm_setting_ip_config_get_method(s_ip_old) : NULL)
|
||||
?: (IS_IPv4 ? NM_SETTING_IP4_CONFIG_METHOD_DISABLED
|
||||
: NM_SETTING_IP6_CONFIG_METHOD_IGNORE);
|
||||
method_new = nm_setting_ip_config_get_method(s_ip_new)
|
||||
method_new = (s_ip_new ? nm_setting_ip_config_get_method(s_ip_new) : NULL)
|
||||
?: (IS_IPv4 ? NM_SETTING_IP4_CONFIG_METHOD_DISABLED
|
||||
: NM_SETTING_IP6_CONFIG_METHOD_IGNORE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue