Skip to content

Commit

Permalink
Fix EP_INFO_CAP logic error
Browse files Browse the repository at this point in the history
Fix #2997.

Signed-off-by: Steven Bellock <[email protected]>
  • Loading branch information
steven-bellock authored and jyao1 committed Mar 4, 2025
1 parent 2213f92 commit 498dcaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion library/spdm_requester_lib/libspdm_req_get_capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ static bool validate_responder_capability(uint32_t capabilities_flag, uint8_t ve
if ((ep_info_cap == 0) || (ep_info_cap == 1)) {
return false;
}
} else {
return false;
}
return false;
}
} else {
/* If certificates or public keys are not enabled then these capabilities
Expand Down
3 changes: 2 additions & 1 deletion library/spdm_responder_lib/libspdm_rsp_capabilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ static bool libspdm_check_request_flag_compatibility(uint32_t capabilities_flag,
if ((ep_info_cap == 0) || (ep_info_cap == 1)) {
return false;
}
} else {
return false;
}
return false;
}
} else {
/* If certificates or public keys are not enabled then these capabilities
Expand Down

0 comments on commit 498dcaf

Please sign in to comment.