mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
scd: Fix the previous commit.
* scd/app-openpgp.c (do_setattr): Flush the KDF DO just before setting. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
3ba7c9bcf7
commit
19f70b5072
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user