Skip to content

Commit 16bf438

Browse files
m-milinkovicjyao1
authored andcommitted
Fix req_vendor_id and req_size duplication
Signed-off-by: Milan Milinkovic <[email protected]>
1 parent 81791b8 commit 16bf438

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/spdm_responder_lib/libspdm_rsp_vendor_response.c

-3
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ libspdm_return_t libspdm_get_vendor_defined_response(libspdm_context_t *spdm_con
181181
spdm_response->len = SPDM_MAX_VENDOR_ID_LENGTH;
182182
resp_data = ((uint8_t *)response) + sizeof(spdm_vendor_defined_response_msg_t);
183183

184-
req_vendor_id = ((const uint8_t *)request) +
185-
sizeof(spdm_vendor_defined_request_msg_t);
186-
req_size = *(const uint16_t *)(req_vendor_id + spdm_request->len);
187184
req_data = ((const uint8_t *)request) +
188185
sizeof(spdm_vendor_defined_request_msg_t) +
189186
((const spdm_vendor_defined_request_msg_t*)request)->len +

0 commit comments

Comments
 (0)