diff --git a/scd/apdu.c b/scd/apdu.c index 6d7f59dd1..8c8f7aa6a 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -3267,7 +3267,7 @@ apdu_send_direct (int slot, size_t extended_length, } #undef SHORT_RESULT_BUFFER_SIZE - if ((sw = trylock_slot (slot))) + if ((sw = lock_slot (slot))) { xfree (apdu_buffer); xfree (result_buffer);