Skip to content

Commit

Permalink
FAPI: Fix misleading error message.
Browse files Browse the repository at this point in the history
The error message "key not found" was misleading for the case when
a NV object was not found.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Dec 11, 2024
1 parent ed6b04b commit 8003845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tss2-fapi/ifapi_keystore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ keystore_search_obj(
statecase(keystore->key_search.state, KSEARCH_SEARCH_OBJECT)
/* Use the next object in the path list */
if (keystore->key_search.path_idx == 0) {
goto_error(r, TSS2_FAPI_RC_PATH_NOT_FOUND, "Key not found.", cleanup);
goto_error(r, TSS2_FAPI_RC_PATH_NOT_FOUND, "Key or NV object not found.", cleanup);
}
keystore->key_search.path_idx -= 1;
path_idx = keystore->key_search.path_idx;
Expand Down

0 comments on commit 8003845

Please sign in to comment.