From: Li kunyu Date: Fri, 18 Nov 2022 07:10:24 +0000 (+0900) Subject: boot/measure: fix oom check X-Git-Tag: v253-rc1~499 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc0cc6db1ecbaa16513125d3fd1a7d11e391a8ee;p=thirdparty%2Fsystemd.git boot/measure: fix oom check --- diff --git a/src/boot/measure.c b/src/boot/measure.c index b9cd2853b61..913cf18ee6e 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; }