aboutsummaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2026-06-30 06:17:55 +0200
committerNIIBE Yutaka <[email protected]>2026-06-30 06:17:55 +0200
commitca25a7a61bebbe4e27dd5568c5b049675b7aa4ae (patch)
treee301e671ee13738e72bafdbcd1af8dde200c4212 /scd
parentdoc: Register DCO for Artemii Bigdan (diff)
downloadgnupg-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index 0d7f0b316..63eb84190 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -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)