mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-11 22:52:47 +01:00
agent: Fix segv in GET_PASSPHRASE (regression)
* agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always NULL. -- Fixes-commit: b89b1f35c29ceaebe39b31444936aa66c9297f2c GnuPG-bug-id: 5577
This commit is contained in:
parent
fdb726f77d
commit
af3b190154
@ -1955,7 +1955,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
|
|||||||
opt_qualbar, cacheid, CACHE_MODE_USER, NULL);
|
opt_qualbar, cacheid, CACHE_MODE_USER, NULL);
|
||||||
xfree (entry_errtext);
|
xfree (entry_errtext);
|
||||||
entry_errtext = NULL;
|
entry_errtext = NULL;
|
||||||
is_generated = !!(pi->status & PINENTRY_STATUS_PASSWORD_GENERATED);
|
is_generated = 0;
|
||||||
|
|
||||||
if (!rc)
|
if (!rc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user