diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-11-18 08:10:24 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-18 13:02:03 +0100 |
commit | fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee (patch) | |
tree | d27f490d7d7cd3f19e643f9533e2bbce8ff05e47 /src/boot | |
parent | fuzz: fuzz-compress: fix copy-and-paste error: buf -> buf2 (#25431) (diff) | |
download | systemd-fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee.tar.xz systemd-fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee.zip |
boot/measure: fix oom check
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/measure.c | 2 |
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; } |