mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 11:10:46 +02:00
parent
24b8429ee3
commit
25f2f33273
1 changed files with 1 additions and 1 deletions
|
|
@ -8300,7 +8300,7 @@ start_sharing (NMDevice *self, NMIP4Config *config)
|
|||
ip_iface = nm_device_get_ip_iface (self);
|
||||
|
||||
ip4_addr = nm_ip4_config_get_first_address (config);
|
||||
if (ip4_addr || !ip4_addr->address)
|
||||
if (!ip4_addr || !ip4_addr->address)
|
||||
return FALSE;
|
||||
|
||||
netmask = nm_utils_ip4_prefix_to_netmask (ip4_addr->plen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue