diff options
Diffstat (limited to 'src/shared/pkcs11-util.c')
-rw-r--r-- | src/shared/pkcs11-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/pkcs11-util.c b/src/shared/pkcs11-util.c index 80feeb1fae..f5f661705e 100644 --- a/src/shared/pkcs11-util.c +++ b/src/shared/pkcs11-util.c @@ -978,7 +978,7 @@ static int pkcs11_acquire_certificate_callback( void *userdata) { _cleanup_(erase_and_freep) char *pin_used = NULL; - struct pkcs11_acquire_certificate_callback_data *data = userdata; + struct pkcs11_acquire_certificate_callback_data *data = ASSERT_PTR(userdata); CK_OBJECT_HANDLE object; int r; @@ -986,7 +986,6 @@ static int pkcs11_acquire_certificate_callback( assert(slot_info); assert(token_info); assert(uri); - assert(data); /* Called for every token matching our URI */ @@ -1200,7 +1199,7 @@ int pkcs11_crypt_device_callback( P11KitUri *uri, void *userdata) { - pkcs11_crypt_device_callback_data *data = userdata; + pkcs11_crypt_device_callback_data *data = ASSERT_PTR(userdata); CK_OBJECT_HANDLE object; int r; @@ -1208,7 +1207,6 @@ int pkcs11_crypt_device_callback( assert(slot_info); assert(token_info); assert(uri); - assert(data); /* Called for every token matching our URI */ |