Skip to content

Commit 5bb9df0

Browse files
Return encapsulated Unspecified error
Fix #3455. Signed-off-by: Steven Bellock <[email protected]>
1 parent 6ea62c2 commit 5bb9df0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/spdm_requester_lib/libspdm_req_encap_challenge_auth.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ libspdm_return_t libspdm_get_encap_response_challenge_auth(
158158
ptr += hash_size;
159159

160160
if (!libspdm_get_random_number(SPDM_NONCE_SIZE, ptr)) {
161-
return LIBSPDM_STATUS_LOW_ENTROPY;
161+
return libspdm_generate_encap_error_response(
162+
context, SPDM_ERROR_CODE_UNSPECIFIED, 0,
163+
response_size, response);
162164
}
163165
ptr += SPDM_NONCE_SIZE;
164166

0 commit comments

Comments
 (0)