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 commit b57a3a4cc6)
This commit is contained in:
Beniamino Galvani 2019-03-04 14:24:56 +01:00
parent 526f1476db
commit 72f40fc421

View file

@ -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,