diff options
Diffstat (limited to 'agent/findkey.c')
-rw-r--r-- | agent/findkey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 9405342d1..5c933f71f 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -407,8 +407,9 @@ unprotect (ctrl_t ctrl, const char *desc_text, return rc; } } - agent_put_cache (hexgrip, cache_mode, pi->pin, - lookup_ttl? lookup_ttl (hexgrip) : 0); + else + agent_put_cache (hexgrip, cache_mode, pi->pin, + lookup_ttl? lookup_ttl (hexgrip) : 0); xfree (*keybuf); *keybuf = arg.unprotected_key; } |