summaryrefslogtreecommitdiffstats
path: root/src/boot
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2022-11-18 08:10:24 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-11-18 13:02:03 +0100
commitfc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee (patch)
treed27f490d7d7cd3f19e643f9533e2bbce8ff05e47 /src/boot
parentfuzz: fuzz-compress: fix copy-and-paste error: buf -> buf2 (#25431) (diff)
downloadsystemd-fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee.tar.xz
systemd-fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee.zip
boot/measure: fix oom check
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/measure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/measure.c b/src/boot/measure.c
index b9cd2853b6..913cf18ee6 100644
--- a/src/boot/measure.c
+++ b/src/boot/measure.c
@@ -898,7 +898,7 @@ static int verb_sign(int argc, char *argv[], void *userdata) {
}
_cleanup_free_ void *sig = malloc(ss);
- if (!ss) {
+ if (!sig) {
r = log_oom();
goto finish;
}