mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 16:28:01 +02:00
trivial: check for NULL setting in nm_ip6_config_merge_setting()
This commit is contained in:
parent
7c0657a119
commit
317bd6bf6c
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ nm_ip6_config_merge_setting (NMIP6Config *config, NMSettingIP6Config *setting)
|
|||
guint naddresses, nroutes, nnameservers, nsearches;
|
||||
int i;
|
||||
|
||||
if (!setting)
|
||||
return;
|
||||
|
||||
naddresses = nm_setting_ip6_config_get_num_addresses (setting);
|
||||
nroutes = nm_setting_ip6_config_get_num_routes (setting);
|
||||
nnameservers = nm_setting_ip6_config_get_num_dns (setting);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue