Index: /tmp/preset-passphrase.c =================================================================== --- /tmp/preset-passphrase.c +++ /tmp/preset-passphrase.c @@ -194,10 +194,18 @@ gpg_strerror (gpg_error_from_syserror ())); return; } + + rc = map_spwq_error (simple_query (line)); + if (rc) + { + log_error ("clearing passphrase failed: %s\n", gpg_strerror (rc)); + return; + } + + wipememory (line, strlen (line)); xfree (line); } - int main (int argc, char **argv) {