summaryrefslogtreecommitdiffstats
path: root/agent/preset-passphrase.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-06-07 15:33:02 +0200
committerWerner Koch <wk@gnupg.org>2010-06-07 15:33:02 +0200
commitbbe388b5db35be6ffece8ebd42f11372af016763 (patch)
tree73e1fe9697b969be66bd89953125010e5721efe1 /agent/preset-passphrase.c
parentPrint --version etc via estream (diff)
downloadgnupg2-bbe388b5db35be6ffece8ebd42f11372af016763.tar.xz
gnupg2-bbe388b5db35be6ffece8ebd42f11372af016763.zip
Add unfinished gpgtar.
Collected changes and ports of bug fixes from stable.
Diffstat (limited to 'agent/preset-passphrase.c')
-rw-r--r--agent/preset-passphrase.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/agent/preset-passphrase.c b/agent/preset-passphrase.c
index 89542c67e..ae202bf65 100644
--- a/agent/preset-passphrase.c
+++ b/agent/preset-passphrase.c
@@ -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);
}