mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-22 15:11:41 +02:00
scd: Fix reading of the ATR for card type detection.
* scd/app.c (app_new_register): Do not use apdu_get_slot.
--
apdu_get_slot() may only be used after the APP has been initialized.
Thus we need to pass teh slot here directly.
Fixes-commit: 9f148360a2
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
05358d7384
commit
95b5a852e2
@ -548,7 +548,7 @@ app_new_register (int slot, ctrl_t ctrl, const char *name,
|
|||||||
size_t atrlen;
|
size_t atrlen;
|
||||||
|
|
||||||
/* This is heuristics to identify different implementations. */
|
/* This is heuristics to identify different implementations. */
|
||||||
atr = apdu_get_atr (app_get_slot (app), &atrlen);
|
atr = apdu_get_atr (slot, &atrlen);
|
||||||
if (atr)
|
if (atr)
|
||||||
{
|
{
|
||||||
if (atrlen == 21 && atr[2] == 0x11)
|
if (atrlen == 21 && atr[2] == 0x11)
|
||||||
|
Loading…
Reference in New Issue
Block a user