From 31124b42c6bc4ded85a5c4cffd8093e93cb0b1f1 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Mon, 13 Nov 2023 23:51:02 +0800 Subject: [PATCH] 1.3 clear multi-key flag in context reset Signed-off-by: Jiewen Yao --- library/spdm_common_lib/libspdm_com_context_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/spdm_common_lib/libspdm_com_context_data.c b/library/spdm_common_lib/libspdm_com_context_data.c index 1ff9f5cae87..00accb8cfae 100644 --- a/library/spdm_common_lib/libspdm_com_context_data.c +++ b/library/spdm_common_lib/libspdm_com_context_data.c @@ -2752,6 +2752,8 @@ void libspdm_reset_context(void *spdm_context) libspdm_zero_mem(&context->encap_context, sizeof(libspdm_encap_context_t)); context->connection_info.local_used_cert_chain_buffer_size = 0; context->connection_info.local_used_cert_chain_buffer = NULL; + context->connection_info.multi_key_conn_req = false; + context->connection_info.multi_key_conn_rsp = false; #if LIBSPDM_RESPOND_IF_READY_SUPPORT context->cache_spdm_request_size = 0; #endif