diff options
author | Werner Koch <[email protected]> | 2021-09-07 06:57:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-09-07 07:03:44 +0000 |
commit | 4b2cfec2dc2fd524a4fed6c17bb11e6a7baf15f2 (patch) | |
tree | 06ec39a658464b8eb9117e262d35041ff81cf20f | |
parent | gpg: Print a note about the obsolete option --secret-keyring. (diff) | |
download | gnupg-4b2cfec2dc2fd524a4fed6c17bb11e6a7baf15f2.tar.gz gnupg-4b2cfec2dc2fd524a4fed6c17bb11e6a7baf15f2.zip |
agent: Fix segv in GET_PASSPHRASE (regression)
* agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always
NULL.
--
Fixes-commit: db5dc7a91af3774cfbce0bc533e0f0b5498402fe
GnuPG-bug-id: 5577
-rw-r--r-- | agent/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c index 0c8a9ff70..e22e2fa0b 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1689,7 +1689,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line) opt_qualbar, cacheid, CACHE_MODE_USER, NULL); xfree (entry_errtext); entry_errtext = NULL; - is_generated = !!(pi->status & PINENTRY_STATUS_PASSWORD_GENERATED); + is_generated = 0; if (!rc) { |