aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--agent/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/command.c b/agent/command.c
index a3e1c514a..0406ea439 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -606,9 +606,9 @@ cmd_passwd (ASSUAN_CONTEXT ctx, char *line)
return rc; /* we can't jump to leave because this is already an
Assuan error code. */
- s_skey = agent_key_from_file (ctrl, grip, &shadow_info, 1);
- if (!s_skey && !shadow_info)
- rc = gpg_error (GPG_ERR_NO_SECKEY);
+ rc = agent_key_from_file (ctrl, grip, &shadow_info, 1, &s_skey);
+ if (rc)
+ ;
else if (!s_skey)
{
log_error ("changing a smartcard PIN is not yet supported\n");