We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5210d94 commit fa984f9Copy full SHA for fa984f9
1 file changed
src/internal.c
@@ -3964,9 +3964,6 @@ static int wp11_Object_Decode_EccKey(WP11_Object* object)
3964
sizeof(object->slot->token.key), object->iv,
3965
sizeof(object->iv), object->devId);
3966
}
3967
- if (ret == 0) {
3968
- ret = wc_ecc_init_ex(key, NULL, object->devId);
3969
- }
3970
if (ret == 0) {
3971
/* Decode ECC private key. */
3972
ret = wc_EccPrivateKeyDecode(der, &idx, key, len);
@@ -6424,7 +6421,7 @@ void WP11_Slot_CloseSessions(WP11_Slot* slot)
6424
6421
WP11_Lock_LockRW(&slot->lock);
6425
6422
/* Finalize the rest. */
6426
6423
for (curr = slot->session; curr != NULL; curr = curr->next)
6427
- wp11_Session_Final(slot->session);
+ wp11_Session_Final(curr);
6428
WP11_Lock_UnlockRW(&slot->lock);
6429
6430
0 commit comments