Home GnuPG
Diffusion GnuPG 80f25fab900b

agent: Fix an unitialized variable in an error path.

Description

agent: Fix an unitialized variable in an error path.

* agent/findkey.c (agent_write_private_key): Init FP.

With
we took a shortcut but forgot to init FP which is usually set after
the new check. At least in the AppImage this always triggered a segv
and gpg or Kleopatra had to restart the agent. Not a problem in 2.4
becuase this code is a hack we don't need in 2.4 due to that new
ephemeral key storing feature.