Skip to content

Commit b6df290

Browse files
Fix EP_INFO_CAP logic error
Fix #2997. Signed-off-by: Steven Bellock <sbellock@nvidia.com>
1 parent 2213f92 commit b6df290

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/spdm_requester_lib/libspdm_req_get_capabilities.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ static bool validate_responder_capability(uint32_t capabilities_flag, uint8_t ve
113113
if ((ep_info_cap == 0) || (ep_info_cap == 1)) {
114114
return false;
115115
}
116+
} else {
117+
return false;
116118
}
117-
return false;
118119
}
119120
} else {
120121
/* If certificates or public keys are not enabled then these capabilities

library/spdm_responder_lib/libspdm_rsp_capabilities.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ static bool libspdm_check_request_flag_compatibility(uint32_t capabilities_flag,
105105
if ((ep_info_cap == 0) || (ep_info_cap == 1)) {
106106
return false;
107107
}
108+
} else {
109+
return false;
108110
}
109-
return false;
110111
}
111112
} else {
112113
/* If certificates or public keys are not enabled then these capabilities

0 commit comments

Comments
 (0)