mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 03:40:05 +01:00
Test passed resilience parameter is not NULL.
This commit is contained in:
committed by
Milan Broz
parent
2820626f5e
commit
d9eff7ffd7
@@ -2416,7 +2416,7 @@ static int reencrypt_init(struct crypt_device *cd,
|
|||||||
.flags = CRYPT_ACTIVATE_SHARED /* turn off exclusive open checks */
|
.flags = CRYPT_ACTIVATE_SHARED /* turn off exclusive open checks */
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!params || params->mode > CRYPT_REENCRYPT_DECRYPT)
|
if (!params || !params->resilience || params->mode > CRYPT_REENCRYPT_DECRYPT)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (params->mode != CRYPT_REENCRYPT_DECRYPT &&
|
if (params->mode != CRYPT_REENCRYPT_DECRYPT &&
|
||||||
|
|||||||
Reference in New Issue
Block a user