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:
parent
e70fc9d8c9
commit
8cea3321cc
@ -1,5 +1,8 @@
|
||||
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.
|
||||
|
||||
2010-05-11 Werner Koch <wk@g10code.com>
|
||||
|
@ -189,11 +189,15 @@ forget_passphrase (const char *keygrip)
|
||||
|
||||
rc = asprintf (&line, "CLEAR_PASSPHRASE %s\n", keygrip);
|
||||
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",
|
||||
gpg_strerror (gpg_error_from_syserror ()));
|
||||
log_error ("clearing passphrase failed: %s\n", gpg_strerror (rc));
|
||||
return;
|
||||
}
|
||||
|
||||
xfree (line);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user