Skip to content

Commit

Permalink
FAPI: Set the init state of ifapi_get_certificates.
Browse files Browse the repository at this point in the history
The init state of the state machine ifapi_get_certificates was not set before the
first call. Fixes #2091.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT authored and Andreas Fuchs committed Jun 18, 2021
1 parent e1aa535 commit 37c5bb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tss2-fapi/api/Fapi_GetPlatformCertificates.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37c5bb5

Please sign in to comment.