agent: Fix segv in GET_PASSPHRASE (regression)

* agent/command.c (cmd_get_passphrase): Do not deref PI.  PI is always
NULL.
--

Fixes-commit: b89b1f35c2
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
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{ {