scd: Fix card removal/reset on multiple contexts.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 20 Jul 2016 02:35:05 +0000 (11:35 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Nov 2016 08:39:00 +0000 (17:39 +0900)
commit519c01a0fd6cfc9d4282251e187d45194325c85b
tree7b3c4eb8b31b11baea208d20316e6b551fc58613
parent3b3386a3fd973ed7f388b1356138941c302848f2
scd: Fix card removal/reset on multiple contexts.

* scd/app.c (application_notify_card_reset): Add message for debug.
*scd/command.c (update_card_removed): Call release_application and set
SLOT -1 here.
(struct server_local_s): Remove app_ctx_marked_for_release.
(do_reset): Don't mark release but call release_application here.
(open_card): Remove app_ctx_marked_for_release handling.
(update_reader_status_file): Don't set SLOT here, so that it can be
released the APP by application_notify_card_reset in
update_card_removed.
--
Backport of master commit: 1598a4476466822e7e9c757ac471089d3db4b545

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app.c
scd/command.c