aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 634e5e354..8f47b8a8f 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2818,6 +2818,9 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name,
if (!rc)
rc = iso7816_put_data (app_get_slot (app), 0, 0xD3, NULL, 0);
+ /* Flush the cache again, because pin2hash_if_kdf uses the DO. */
+ flush_cache_item (app, 0xF9);
+
wipe_and_free (buffer1, bufferlen1);
wipe_and_free_string (oldpinvalue);
}