Home GnuPG
Diffusion GnuPG 5c1eb6dba872

scd: Fix resetting and closing of the reader. (Backported by gniibe)
5c1eb6dba872Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Fix resetting and closing of the reader. (Backported by gniibe)

* scd/command.c (update_card_removed): Do no act on an invalid VRDR.
(do_reset): Ignore apdu_reset error codes for no and inactive card.
Close the reader before setting the slot to -1.
(update_reader_status_file): Notify the application before closing the
reader.

With this change the scd now works as it did in the past. In
particular there is no more endless loop trying to open the reader by
the update_reader_status_file ticker function. That bug basically
blocked all card operations until the scdaemon was killed.

Details

Provenance
wernerAuthored on Dec 14 2011, 10:30 AM
gniibeCommitted on Jun 25 2012, 3:04 AM
Parents
rG2d052240fb52: scd: Retry command SERIALNO for an inactive card.
Branches
Unknown
Tags
Unknown

Event Timeline