mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
settings: fix use after free in keyfile's load_connections()
Fixes: d35d3c468a ('settings: rework tracking settings connections and settings plugins')
This commit is contained in:
parent
1e742e0fb4
commit
eb642fecdf
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ _load_file (NMSKeyfilePlugin *self,
|
||||||
&local);
|
&local);
|
||||||
if (!connection) {
|
if (!connection) {
|
||||||
if (error)
|
if (error)
|
||||||
g_propagate_error (error, local);
|
g_propagate_error (error, g_steal_pointer (&local));
|
||||||
else
|
else
|
||||||
_LOGW ("load: \"%s\": failed to load connection: %s", full_filename, local->message);
|
_LOGW ("load: \"%s\": failed to load connection: %s", full_filename, local->message);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue