mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 16:40:13 +01:00
core: fix recently introduced crash in nm-manager
find_master() does not (always) set the output parameters. Initialize
paramter to NULL before calling find_master().
Just introduced recently with commit 8123cd2410.
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
bd7e647914
commit
f9022b8fb3
1 changed files with 1 additions and 1 deletions
|
|
@ -1938,7 +1938,7 @@ add_device (NMManager *self, NMDevice *device, gboolean generate_con)
|
|||
subject = nm_auth_subject_new_internal ();
|
||||
active = _new_active_connection (self, connection, NULL, device, subject, &error);
|
||||
if (active) {
|
||||
NMActiveConnection *master_ac;
|
||||
NMActiveConnection *master_ac = NULL;
|
||||
|
||||
/* If the device is a slave or VLAN, find the master ActiveConnection */
|
||||
if (find_master (self, connection, device, NULL, NULL, &master_ac, NULL) && master_ac)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue