1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-30 16:17:02 +01:00
NIIBE Yutaka f42c50dbf0 scd: Fix "Conflicting usage" bug.
* scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
  got an error from apdu_disconnect.
* scd/app-common.h (no_reuse): Remove.
* scd/app.c (application_notify_card_reset): Deallocate APP here.
(select_application, release_application): Don't use NO_REUSE.

--

Reproducible scenario: Invoke gpg --card-edit session from a terminal.
Invoke another gpg --card-edit session from another.  Remove a token.
Insert a token again.  Type RET on both terminals.  One of terminal
answers "Conflicting usage".

Perhaps, having NO_REUSE field was to avoid race conditions.  Now,
APP can be safely deallocated by application_notify_card_reset.

Thanks to the2nd.
2015-12-03 11:26:24 +09:00
..
2015-12-03 11:26:24 +09:00
2015-12-03 11:26:24 +09:00
2013-02-08 09:06:39 +09:00
2015-11-17 12:50:22 +01:00
2014-08-14 14:09:37 +02:00
2015-12-03 11:26:24 +09:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2013-02-08 09:06:39 +09:00
2015-07-09 12:51:03 +09:00