mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Merge branch 'STABLE-BRANCH-2-2'
-- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
commit
fe96ca8d86
6 changed files with 25 additions and 13 deletions
|
@ -1498,8 +1498,13 @@ open_ccid_reader (struct dev_list *dl)
|
|||
err = ccid_open_reader (dl->portstr, dl->idx, dl->ccid_table,
|
||||
&slotp->ccid.handle, &slotp->rdrname);
|
||||
if (!err)
|
||||
err = ccid_get_atr (slotp->ccid.handle,
|
||||
slotp->atr, sizeof slotp->atr, &slotp->atrlen);
|
||||
{
|
||||
err = ccid_get_atr (slotp->ccid.handle,
|
||||
slotp->atr, sizeof slotp->atr, &slotp->atrlen);
|
||||
if (err)
|
||||
ccid_close_reader (slotp->ccid.handle);
|
||||
}
|
||||
|
||||
if (err)
|
||||
{
|
||||
slotp->used = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue