diff options
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |