mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-23 07:20:37 +01:00
libnm: fix clearing real-devices in NMManager's free_devices()
Found by coverity.
This commit is contained in:
parent
2d6cf0df19
commit
e4af0f6767
2 changed files with 2 additions and 2 deletions
|
|
@ -1342,7 +1342,7 @@ free_devices (NMClient *client, gboolean in_dispose)
|
|||
|
||||
if (all_devices && all_devices->len > 0)
|
||||
devices = all_devices;
|
||||
else if (devices && devices->len > 0)
|
||||
else if (real_devices && real_devices->len > 0)
|
||||
devices = real_devices;
|
||||
|
||||
if (real_devices && devices != real_devices) {
|
||||
|
|
|
|||
|
|
@ -1212,7 +1212,7 @@ free_devices (NMManager *manager, gboolean in_dispose)
|
|||
|
||||
if (all_devices && all_devices->len > 0)
|
||||
devices = all_devices;
|
||||
else if (devices && devices->len > 0)
|
||||
else if (real_devices && real_devices->len > 0)
|
||||
devices = real_devices;
|
||||
|
||||
if (real_devices && devices != real_devices) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue