mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 19:30:04 +01:00
Use crypt_is_cipher_null check where possible.
This commit is contained in:
committed by
Milan Broz
parent
fb8aa6d03b
commit
c8c28cf6dd
@@ -651,7 +651,7 @@ static char *get_dm_crypt_params(const struct dm_target *tgt, uint32_t flags)
|
||||
} else
|
||||
*features = '\0';
|
||||
|
||||
if (!strncmp(cipher_dm, "cipher_null-", 12))
|
||||
if (crypt_is_cipher_null(cipher_dm))
|
||||
null_cipher = 1;
|
||||
|
||||
if (flags & CRYPT_ACTIVATE_KEYRING_KEY) {
|
||||
|
||||
Reference in New Issue
Block a user