1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +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:
Werner Koch 2021-09-07 08:57:44 +02:00
parent fdb726f77d
commit af3b190154
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1955,7 +1955,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)
{