mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Remove missing digest condition from LUKS2 digest verification.
This commit is contained in:
committed by
Milan Broz
parent
3cf2da877f
commit
761a472b45
@@ -121,8 +121,6 @@ int LUKS2_digest_verify(struct crypt_device *cd,
|
|||||||
int digest, r;
|
int digest, r;
|
||||||
|
|
||||||
digest = LUKS2_digest_by_keyslot(cd, hdr, keyslot);
|
digest = LUKS2_digest_by_keyslot(cd, hdr, keyslot);
|
||||||
if (digest == -ENOENT)
|
|
||||||
return 0;
|
|
||||||
if (digest < 0)
|
if (digest < 0)
|
||||||
return digest;
|
return digest;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user