diff options
| author | NIIBE Yutaka <[email protected]> | 2026-06-30 06:17:55 +0200 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2026-06-30 06:17:55 +0200 |
| commit | ca25a7a61bebbe4e27dd5568c5b049675b7aa4ae (patch) | |
| tree | e301e671ee13738e72bafdbcd1af8dde200c4212 /scd | |
| parent | doc: Register DCO for Artemii Bigdan (diff) | |
| download | gnupg-ca25a7a61bebbe4e27dd5568c5b049675b7aa4ae.tar.gz gnupg-ca25a7a61bebbe4e27dd5568c5b049675b7aa4ae.zip | |
scd: Fix condition to retrieve ATR.
* scd/app.c (atr_to_cardtype): Call apdu_get_atr when ATR is NULL.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd')
| -rw-r--r-- | scd/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -661,7 +661,7 @@ atr_to_cardtype (int slot, const unsigned char *atr, size_t atrlen) cardtype_t cardtype = 0; int i; - if (atr) + if (!atr) { atrbuf = apdu_get_atr (slot, &atrlen); if (!atrbuf) |
