diff options
author | Werner Koch <wk@gnupg.org> | 2010-06-07 15:33:02 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-06-07 15:33:02 +0200 |
commit | bbe388b5db35be6ffece8ebd42f11372af016763 (patch) | |
tree | 73e1fe9697b969be66bd89953125010e5721efe1 /agent/preset-passphrase.c | |
parent | Print --version etc via estream (diff) | |
download | gnupg2-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.c | 8 |
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); } |