Skip to content

Commit

Permalink
Fix req_vendor_id and req_size duplication
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Milinkovic <[email protected]>
  • Loading branch information
m-milinkovic authored and jyao1 committed May 6, 2024
1 parent 81791b8 commit 16bf438
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/spdm_responder_lib/libspdm_rsp_vendor_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit 16bf438

Please sign in to comment.