Home GnuPG
Diffusion GnuPG 09d000babb71

scd: Fix resetting CARD_CTX.

Description

scd: Fix resetting CARD_CTX.

* scd/app.c (deallocate_card): Don't call scd_clear_current_app.
(card_reset): Reset ctrl->current_apptype.
* scd/command.c (open_card_with_request): Likewise.
(send_client_notifications): Likewise.
(scd_clear_current_app): Remove.

It's too late to call scd_clear_current_app from deallocate_card,
because CARD_CTX is already reset.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Aug 21 2019, 2:57 AM
Parents
rGd4f135c34b33: scd: Fix switching to another APP.
Branches
Unknown
Tags
Unknown