mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
measure: fix oom check
Pointed out in review. (cherry picked from commit9a3a861ff8) (cherry picked from commitc078c554a6)
This commit is contained in:
committed by
Luca Boccassi
parent
393a560c21
commit
0b9de73f9f
@@ -1095,10 +1095,8 @@ static int verb_status(int argc, char *argv[], void *userdata) {
|
||||
return log_error_errno(r, "Failed to decode PCR value '%s': %m", s);
|
||||
|
||||
if (!sd_json_format_enabled(arg_json_format_flags)) {
|
||||
_cleanup_free_ char *f = NULL;
|
||||
|
||||
f = hexmem(h, l);
|
||||
if (!h)
|
||||
_cleanup_free_ char *f = hexmem(h, l);
|
||||
if (!f)
|
||||
return log_oom();
|
||||
|
||||
if (bank == arg_banks) {
|
||||
|
||||
Reference in New Issue
Block a user