From 16bf4380cdb514e0a6d7682955e2f48cc0e1e9eb Mon Sep 17 00:00:00 2001 From: Milan Milinkovic Date: Tue, 30 Apr 2024 13:13:51 +0200 Subject: [PATCH] Fix req_vendor_id and req_size duplication Signed-off-by: Milan Milinkovic --- library/spdm_responder_lib/libspdm_rsp_vendor_response.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/spdm_responder_lib/libspdm_rsp_vendor_response.c b/library/spdm_responder_lib/libspdm_rsp_vendor_response.c index 447f945adfb..8ecb8dfc4e3 100644 --- a/library/spdm_responder_lib/libspdm_rsp_vendor_response.c +++ b/library/spdm_responder_lib/libspdm_rsp_vendor_response.c @@ -181,9 +181,6 @@ libspdm_return_t libspdm_get_vendor_defined_response(libspdm_context_t *spdm_con spdm_response->len = SPDM_MAX_VENDOR_ID_LENGTH; resp_data = ((uint8_t *)response) + sizeof(spdm_vendor_defined_response_msg_t); - req_vendor_id = ((const uint8_t *)request) + - sizeof(spdm_vendor_defined_request_msg_t); - req_size = *(const uint16_t *)(req_vendor_id + spdm_request->len); req_data = ((const uint8_t *)request) + sizeof(spdm_vendor_defined_request_msg_t) + ((const spdm_vendor_defined_request_msg_t*)request)->len +