mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-13 06:10:20 +01:00
manager: fix very bad usage of 'nm_utils_user_data_unpack'
This results in the args of 'nm_utils_user_data_unpack' containing random data potentially also from the previous stack-frame which is really really bad. Signed-off-by: Antonio Cardace <acardace@redhat.com> Fixes:b50702775f('device: implement auth-request as async operation nm_manager_device_auth_request()') (cherry picked from commitb6a18e0593) (cherry picked from commit50adaf7414)
This commit is contained in:
parent
7665d9b29e
commit
72a2e34b42
1 changed files with 8 additions and 1 deletions
|
|
@ -2453,7 +2453,14 @@ _device_auth_done_fail_on_idle (gpointer user_data, GCancellable *cancellable)
|
|||
NMManagerDeviceAuthRequestFunc callback;
|
||||
gpointer callback_user_data;
|
||||
|
||||
nm_utils_user_data_unpack (&self, &device, &context, &subject, &error_original, &callback, &callback_user_data);
|
||||
nm_utils_user_data_unpack (user_data,
|
||||
&self,
|
||||
&device,
|
||||
&context,
|
||||
&subject,
|
||||
&error_original,
|
||||
&callback,
|
||||
&callback_user_data);
|
||||
|
||||
g_cancellable_set_error_if_cancelled (cancellable, &error_cancelled);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue