mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-28 07:40:51 +02: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) (cherry picked from commit72a2e34b42)
This commit is contained in:
parent
2899343bfd
commit
493bf23c73
1 changed files with 8 additions and 1 deletions
|
|
@ -2431,7 +2431,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