Skip to content

Commit

Permalink
FAPI: Fix possible null pointer dereferencing in Fapi_List.
Browse files Browse the repository at this point in the history
The possible null pointer dereferencing if Fapi_List_Finish is called
without previous call of the async function is fixed.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jan 30, 2024
1 parent 285f1ad commit bc088b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tss2-fapi/api/Fapi_List.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ Fapi_List_Finish(
/* Helpful alias pointers */
IFAPI_Entities_List * command = &context->cmd.Entities_List;

check_not_null(command->searchPath);

/* Retrieve the objects along the search path. */
r = ifapi_keystore_list_all(&context->keystore, command->searchPath,
&pathArray, &numPaths);
Expand Down

0 comments on commit bc088b1

Please sign in to comment.