diff options
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 2301ba3f5..ad88eb619 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -2225,7 +2225,8 @@ cache_pin (app_t app, ctrl_t ctrl, int chvno, const char *pin) default: return; } - pincache_put (ctrl, app_get_slot (app), "openpgp", keyref, pin); + pincache_put (ctrl, app_get_slot (app), "openpgp", keyref, + pin, pin? strlen (pin):0); } |