summaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-08-27 11:53:06 +0200
committerWerner Koch <wk@gnupg.org>2020-08-27 11:53:06 +0200
commit95b5a852e269e602ade6a07ed468e9072c247b8c (patch)
treeb4e1eaa1cdda956fb5e6e78d7cc36d3e3cf8276f /scd/app.c
parentdirmngr: Print the last alert message returned by NTBTLS. (diff)
downloadgnupg2-95b5a852e269e602ade6a07ed468e9072c247b8c.tar.xz
gnupg2-95b5a852e269e602ade6a07ed468e9072c247b8c.zip
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: 9f148360a2bf04672b43ef7cec48e21d44b06ae1 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index 6a583d4c2..f772510c3 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -548,7 +548,7 @@ app_new_register (int slot, ctrl_t ctrl, const char *name,
size_t atrlen;
/* 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 (atrlen == 21 && atr[2] == 0x11)