mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 04:18:07 +02:00
clients: fix double free
@secrets is unreferenced at the end of request_secrets_from_ui() and so try_spawn_vpn_auth_helper() must take a reference to it. Fixes:1a0fc8d437(cherry picked from commitb57a3a4cc6)
This commit is contained in:
parent
526f1476db
commit
72f40fc421
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ try_spawn_vpn_auth_helper (RequestData *request,
|
|||
.auth_dialog_response = g_string_new_len (NULL, sizeof (data->read_buf)),
|
||||
.auth_dialog_pid = auth_dialog_pid,
|
||||
.request = request,
|
||||
.secrets = secrets,
|
||||
.secrets = g_ptr_array_ref (secrets),
|
||||
};
|
||||
|
||||
g_output_stream_write_async (auth_dialog_in,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue