mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 10:50:01 +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) {
|
if (r < 0 || !tmp) {
|
||||||
log_err(cd, _("Failed to load LUKS2 reencryption context."));
|
log_err(cd, _("Failed to load LUKS2 reencryption context."));
|
||||||
return r;
|
return r < 0 ? r : -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
*rh = tmp;
|
*rh = tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user