]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: use correct path variable when reading verity signatures
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 22 Sep 2020 12:19:19 +0000 (13:19 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 22 Sep 2020 12:19:19 +0000 (13:19 +0100)
Copypasta slipped in via https://github.com/systemd/systemd/pull/17101

src/shared/dissect-image.c

index e24740d44937bd00073f22b01f4e58101688252d..8947da810249b6dd3e3f25bd49b638c4d60e9e38 100644 (file)
@@ -1964,7 +1964,7 @@ int verity_settings_load(
                                 if (!p)
                                         return -ENOMEM;
 
-                                r = read_full_file_full(AT_FDCWD, root_hash_sig_path, 0, (char**) &root_hash_sig, &root_hash_sig_size);
+                                r = read_full_file_full(AT_FDCWD, p, 0, (char**) &root_hash_sig, &root_hash_sig_size);
                                 if (r < 0 && r != -ENOENT)
                                         return r;
                                 if (r >= 0)
@@ -1978,7 +1978,7 @@ int verity_settings_load(
                                 if (!p)
                                         return -ENOMEM;
 
-                                r = read_full_file_full(AT_FDCWD, root_hash_sig_path, 0, (char**) &root_hash_sig, &root_hash_sig_size);
+                                r = read_full_file_full(AT_FDCWD, p, 0, (char**) &root_hash_sig, &root_hash_sig_size);
                                 if (r < 0 && r != -ENOENT)
                                         return r;
                                 if (r >= 0)