[PATCH gnupg] agent: Fix PIN caching.

Bogdan Luca luca.bogdan at gmail.com
Wed May 12 16:13:34 CEST 2021


* agent/call-scd.c (padding_info_cb): Fix handle_pincache_put call.
--

GnuPG-bug-id: 5436
Signed-off-by: Bogdan Luca <luca.bogdan at gmail.com>
---
 agent/call-scd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agent/call-scd.c b/agent/call-scd.c
index 3ede33c1d..eb2078472 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -546,7 +546,7 @@ padding_info_cb (void *opaque, const char *line)
       *r_padding = atoi (s);
     }
   else if ((s=has_leading_keyword (line, "PINCACHE_PUT")))
-    err = handle_pincache_put (line);
+    err = handle_pincache_put (s);

   return err;
 }
--
2.31.1



More information about the Gnupg-devel mailing list