mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
reencrypt: fix checking of context name arguments.
This commit is contained in:
@@ -1413,7 +1413,7 @@ static int reencrypt_init_storage_wrappers(struct crypt_device *cd,
|
|||||||
|
|
||||||
static int reencrypt_context_set_names(struct luks2_reencrypt *rh, const char *name)
|
static int reencrypt_context_set_names(struct luks2_reencrypt *rh, const char *name)
|
||||||
{
|
{
|
||||||
if (!rh | !name)
|
if (!rh || !name)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (*name == '/') {
|
if (*name == '/') {
|
||||||
|
|||||||
Reference in New Issue
Block a user