aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 4ac7f5d72..ba54b9a28 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2924,7 +2924,7 @@ do_change_pin (app_t app, ctrl_t ctrl, const char *chvnostr,
if (!rc)
{
strcpy (buffer+pinlen0, pinvalue);
- rc = pin2hash_if_kdf (app, 0, buffer+pinlen0, &pinlen);
+ rc = pin2hash_if_kdf (app, 1, buffer+pinlen0, &pinlen);
}
if (!rc)
rc = iso7816_reset_retry_counter_with_rc (app->slot, 0x81,