mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
dissect: fix log_debug_errno assert due to r=0
systemd-dissect[612]: Assertion '(_error) != 0' failed at src/shared/dissect-image.c:3436, function dissected_image_load_verity_sig_partition(). Aborting.
This commit is contained in:
parent
7db71cd79f
commit
135640c140
@ -3433,7 +3433,7 @@ int dissected_image_load_verity_sig_partition(
|
||||
a = hexmem(root_hash, root_hash_size);
|
||||
b = hexmem(verity->root_hash, verity->root_hash_size);
|
||||
|
||||
return log_debug_errno(r, "Root hash in signature JSON data (%s) doesn't match configured hash (%s).", strna(a), strna(b));
|
||||
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Root hash in signature JSON data (%s) doesn't match configured hash (%s).", strna(a), strna(b));
|
||||
}
|
||||
|
||||
sig = sd_json_variant_by_key(v, "signature");
|
||||
|
Loading…
x
Reference in New Issue
Block a user