Browse Source

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
master
Werner Koch 2 weeks ago
parent
commit
af3b190154
No known key found for this signature in database GPG Key ID: E3FDFF218E45B72B
  1. 2
      agent/command.c

2
agent/command.c

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

Loading…
Cancel
Save