Skip to content

Commit

Permalink
Sync PKCS repo with AFR. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lundinc2 authored Sep 22, 2020
1 parent 6724b71 commit 7b7fbd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Doxygen pages, please run the following command from the root of this repository
```shell
doxygen docs/doxygen/config.doxyfile
```
t

## Security

See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
Expand Down
6 changes: 3 additions & 3 deletions source/portable/mbedtls/iot_pkcs11_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ static void prvFindObjectInListByHandle( CK_OBJECT_HANDLE xAppHandle,
static CK_RV prvDeleteObjectFromList( CK_OBJECT_HANDLE xAppHandle )
{
CK_RV xResult = CKR_OK;
uint32_t ulGotSemaphore = 0UL;
int32_t lGotSemaphore = 0UL;
uint32_t ulIndex = xAppHandle - 1UL;

if( ulIndex >= pkcs11configMAX_NUM_OBJECTS )
Expand All @@ -939,10 +939,10 @@ static CK_RV prvDeleteObjectFromList( CK_OBJECT_HANDLE xAppHandle )

if( xResult == CKR_OK )
{
ulGotSemaphore = mbedtls_mutex_lock( &xP11Context.xObjectList.xMutex );
lGotSemaphore = mbedtls_mutex_lock( &xP11Context.xObjectList.xMutex );
}

if( ulGotSemaphore == 0 )
if( lGotSemaphore == 0 )
{
if( xP11Context.xObjectList.xObjects[ ulIndex ].xHandle != CK_INVALID_HANDLE )
{
Expand Down

0 comments on commit 7b7fbd0

Please sign in to comment.