aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 68214a6d8..6f3e62a33 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -1452,7 +1452,11 @@ main ( int argc, char **argv)
else if (!(grip = gpgsm_get_keygrip_hexstring (cert)))
rc = gpg_error (GPG_ERR_BUG);
else
- rc = gpgsm_agent_passwd (grip);
+ {
+ char *desc = gpgsm_format_keydesc (cert);
+ rc = gpgsm_agent_passwd (grip, desc);
+ xfree (desc);
+ }
if (rc)
log_error ("error changing passphrase: %s\n", gpg_strerror (rc));
xfree (grip);