mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 08:20:07 +01:00
Fix clang possible rh NULL dereference warning.
This commit is contained in:
@@ -3297,7 +3297,7 @@ static int reencrypt_load(struct crypt_device *cd, struct luks2_hdr *hdr,
|
||||
|
||||
if (r < 0 || !tmp) {
|
||||
log_err(cd, _("Failed to load LUKS2 reencryption context."));
|
||||
return r;
|
||||
return r < 0 ? r : -EINVAL;
|
||||
}
|
||||
|
||||
*rh = tmp;
|
||||
|
||||
Reference in New Issue
Block a user