pcrlock: add an extra assert()

This commit is contained in:
Lennart Poettering
2026-03-10 12:03:17 +01:00
parent e7485799a4
commit 809cb1b4d8
+2
View File
@@ -327,6 +327,8 @@ static int extend_nvpcr_now(
_cleanup_(tpm2_context_unrefp) Tpm2Context *c = NULL;
int r;
assert(name);
r = tpm2_context_new_or_warn(arg_tpm2_device, &c);
if (r < 0)
return r;