diff options
author | Werner Koch <wk@gnupg.org> | 2020-08-27 11:53:06 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-08-27 11:53:06 +0200 |
commit | 95b5a852e269e602ade6a07ed468e9072c247b8c (patch) | |
tree | b4e1eaa1cdda956fb5e6e78d7cc36d3e3cf8276f /scd/app.c | |
parent | dirmngr: Print the last alert message returned by NTBTLS. (diff) | |
download | gnupg2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |