-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Coverity defects in soft-pkcs11 test code
Nothing in the code removes objects from soft_token.object.obs, so simplify add_st_object() not to search for an empty slot. Avoid using random() by using a counter for session handles and just the array slot number for object handles. Add a helper get_rcfilename() to facilitate checking the result of asprintf(). Properly initialize ap in sprintf_fill(). Close the file handle in read_conf_file().
- Loading branch information
1 parent
c2497d4
commit b483151
Showing
1 changed file
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters