From 37c5bb566cf2016c49b6ab1305161ae108dbc912 Mon Sep 17 00:00:00 2001 From: Juergen Repp Date: Fri, 11 Jun 2021 20:09:38 +0200 Subject: [PATCH] FAPI: Set the init state of ifapi_get_certificates. The init state of the state machine ifapi_get_certificates was not set before the first call. Fixes #2091. Signed-off-by: Juergen Repp --- src/tss2-fapi/api/Fapi_GetPlatformCertificates.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c b/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c index 5a203d219..fc1cd06c2 100644 --- a/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c +++ b/src/tss2-fapi/api/Fapi_GetPlatformCertificates.c @@ -156,6 +156,7 @@ Fapi_GetPlatformCertificates_Async( /* Initialize the context state for this operation. */ context->state = GET_PLATFORM_CERTIFICATE; + context->get_cert_state = GET_CERT_INIT; LOG_TRACE("finished"); return TSS2_RC_SUCCESS;