mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
agent: Fix bug introduced earlier today.
* agent/findkey.c (agent_write_private_key): Fix condition. -- Fixes-commit: 755920d4335730fbf25e24342dc9c8a8a772dac3
This commit is contained in:
parent
891b941bbf
commit
3591112fdb
@ -268,7 +268,7 @@ agent_write_private_key (const unsigned char *grip,
|
|||||||
estream_t fp;
|
estream_t fp;
|
||||||
|
|
||||||
fname = fname_from_keygrip (grip);
|
fname = fname_from_keygrip (grip);
|
||||||
if (fname)
|
if (!fname)
|
||||||
return gpg_error_from_syserror ();
|
return gpg_error_from_syserror ();
|
||||||
|
|
||||||
/* FIXME: Write to a temp file first so that write failures during
|
/* FIXME: Write to a temp file first so that write failures during
|
||||||
|
Loading…
x
Reference in New Issue
Block a user