From 8264b10d33e46d2caac2f2c38ccb5f764c31ad77 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 26 Oct 2020 14:29:31 +0900 Subject: [PATCH] scd: Flush the cache when writing cert data object. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * scd/app-piv.c (do_writecert): Flush the cache of the data object. -- Suggested-by: Ingo Klöcker GnuPG-bug-id: 5102 Signed-off-by: NIIBE Yutaka --- scd/app-piv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scd/app-piv.c b/scd/app-piv.c index 8ab778532..0288d8528 100644 --- a/scd/app-piv.c +++ b/scd/app-piv.c @@ -3476,6 +3476,7 @@ do_writecert (app_t app, ctrl_t ctrl, goto leave; } + flush_cached_data (app, dobj->tag); err = put_data (app_get_slot (app), dobj->tag, (int)0x70, (size_t)certlen, cert,/* Certificate */ (int)0x71, (size_t)1, "", /* No compress */