1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

Fix bug#1198

This commit is contained in:
Werner Koch 2010-05-12 11:03:28 +00:00
parent e70fc9d8c9
commit 8cea3321cc
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2010-05-12 Werner Koch <wk@g10code.com> 2010-05-12 Werner Koch <wk@g10code.com>
* preset-passphrase.c (forget_passphrase): Actually implement
this. Fixes bug#1198.
* gpg-agent.c (handle_tick): Do not print die message with option -q. * gpg-agent.c (handle_tick): Do not print die message with option -q.
2010-05-11 Werner Koch <wk@g10code.com> 2010-05-11 Werner Koch <wk@g10code.com>

View File

@ -189,11 +189,15 @@ forget_passphrase (const char *keygrip)
rc = asprintf (&line, "CLEAR_PASSPHRASE %s\n", keygrip); rc = asprintf (&line, "CLEAR_PASSPHRASE %s\n", keygrip);
if (rc < 0) if (rc < 0)
rc = gpg_error_from_syserror ();
else
rc = map_spwq_error (simple_query (line));
if (rc)
{ {
log_error ("clearing passphrase failed: %s\n", log_error ("clearing passphrase failed: %s\n", gpg_strerror (rc));
gpg_strerror (gpg_error_from_syserror ()));
return; return;
} }
xfree (line); xfree (line);
} }