From f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 16 Sep 2020 13:04:59 +0900 Subject: [PATCH] scd: Clear caching PIN at KDF setup. * scd/app-openpgp.c (do_setattr): Clear PINs. Signed-off-by: NIIBE Yutaka --- scd/app-openpgp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 82625b0ae..3d96467bf 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -2931,6 +2931,10 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name, value = NULL; valuelen = 0; } + + cache_pin (app, ctrl, 1, NULL); + cache_pin (app, ctrl, 2, NULL); + cache_pin (app, ctrl, 3, NULL); } else {