mirror of
git://git.gnupg.org/gnupg.git
synced 2024-10-29 19:48:43 +01:00
agent: Fix an unitialized variable in an error path.
* agent/findkey.c (agent_write_private_key): Init FP.
--
With
Fixes-commit: 3b69d8bf71
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.
GnuPG-bug-id: 6944
This commit is contained in:
parent
62bd291dcc
commit
80f25fab90
@ -91,7 +91,7 @@ agent_write_private_key (const unsigned char *grip,
|
||||
gpg_error_t err;
|
||||
char *oldfname = NULL;
|
||||
char *fname = NULL;
|
||||
estream_t fp;
|
||||
estream_t fp = NULL;
|
||||
int newkey = 0;
|
||||
nvc_t pk = NULL;
|
||||
gcry_sexp_t key = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user