aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/ChangeLog4
-rw-r--r--scd/app-openpgp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/scd/ChangeLog b/scd/ChangeLog
index 5e53fb9d1..1c453e826 100644
--- a/scd/ChangeLog
+++ b/scd/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-18 Werner Koch <[email protected]>
+
+ * app-openpgp.c (do_setattr): Fix test for v2 cards.
+
2008-08-11 Werner Koch <[email protected]>
* apdu.c (reset_pcsc_reader, open_pcsc_reader)
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index cfc51ce45..553d2fe8c 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1657,8 +1657,8 @@ do_setattr (app_t app, const char *name,
;
if (!table[idx].name)
return gpg_error (GPG_ERR_INV_NAME);
- if (!table[idx].need_v2)
- return gpg_error (GPG_ERR_NOT_SUPPORTED);
+ if (table[idx].need_v2)
+ return gpg_error (GPG_ERR_NOT_SUPPORTED); /* Not yet supported. */
switch (table[idx].need_chv)
{