Skip to content

eBPF-based security platform

attest: scrub the expected credential attest verify parses

Tobias Klauserae0005cf6cda
diff --git a/builtin-attest.c b/builtin-attest.c
index ecd57081..efb65607 100644
--- a/builtin-attest.c
+++ b/builtin-attest.c
@@ -786,6 +786,7 @@ out:
xfree(evidence, evidence ? evidence_len + 1 : 0);
xfree(report, report ? ATTEST_REPORT_MAX : 0);
xfree(m.set, m.set ? ATTEST_MEMBERS_MAX * sizeof(*m.set) : 0);
+ memzero_explicit(&x, sizeof(x));
return ret;
}