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()')
This commit is contained in:
Antonio Cardace 2020-10-22 14:40:15 +02:00
parent 6e44842dc6
commit b6a18e0593
No known key found for this signature in database
GPG key ID: 6BF80ABD43E377D3

View file

@ -2445,7 +2445,8 @@ _device_auth_done_fail_on_idle(gpointer user_data, GCancellable *cancellable)
NMManagerDeviceAuthRequestFunc callback;
gpointer callback_user_data;
nm_utils_user_data_unpack(&self,
nm_utils_user_data_unpack(user_data,
&self,
&device,
&context,
&subject,