mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fix bug#1198
This commit is contained in:
parent
e70fc9d8c9
commit
8cea3321cc
2 changed files with 9 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue