]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: fix log_debug_errno assert due to r=0
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 17 Feb 2025 01:04:33 +0000 (01:04 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Feb 2025 05:38:05 +0000 (14:38 +0900)
systemd-dissect[612]: Assertion '(_error) != 0' failed at src/shared/dissect-image.c:3436, function dissected_image_load_verity_sig_partition(). Aborting.

src/shared/dissect-image.c

index 92b738150984d1f2870e9292e2af0c490137f734..5ab0f9fe18376586caa1c5c917ecdb289d818628 100644 (file)
@@ -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");