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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index d434e341d..f870e1a70 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2967,14 +2967,14 @@ 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);
}
else
return gpg_error (GPG_ERR_INV_OBJ);
+
+ /* Flush the cache again, because pin2hash_if_kdf uses the DO. */
+ flush_cache_item (app, 0xF9);
}
rc = iso7816_put_data (app_get_slot (app),