mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
agent: Make sure to return success in ephemeral store mode.
* agent/genkey.c (store_key): Clear ERR on success. -- This fixes a real problem which might let ephemeral store mode fail randomly. This is part of GnuPG-bug-id: 7129 Co-authored-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
021c27510b
commit
fdc5003956
@ -116,6 +116,7 @@ store_key (ctrl_t ctrl, gcry_sexp_t private,
|
||||
ek->keybuf = buf;
|
||||
buf = NULL;
|
||||
ek->keybuflen = len;
|
||||
err = 0;
|
||||
}
|
||||
else
|
||||
err = agent_write_private_key (ctrl, grip, buf, len, force,
|
||||
|
Loading…
x
Reference in New Issue
Block a user