X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fcryptsetup%2Fcryptsetup-tokens%2Fluks2-pkcs11.c;h=2e0450aa5bab0c2d9d1b17b3fb82fd2b70c72773;hb=995340074e554b4bf4a0fdb0cb7436692c5a4ffd;hp=9e88c8cfc3a59179a8a88935e2cce0371068dcbe;hpb=6d64cb0625691e2b9eda8babe07ac8281f9467ee;p=thirdparty%2Fsystemd.git diff --git a/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c b/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c index 9e88c8cfc3a..2e0450aa5ba 100644 --- a/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c +++ b/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c @@ -36,13 +36,12 @@ static int luks2_pkcs11_callback( CK_TOKEN_INFO updated_token_info; int r; _cleanup_free_ char *token_label = NULL; - struct luks2_pkcs11_callback_data *data = userdata; + struct luks2_pkcs11_callback_data *data = ASSERT_PTR(userdata); assert(m); assert(slot_info); assert(token_info); assert(uri); - assert(data); token_label = pkcs11_token_label(token_info); if (!token_label)