mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-11 22:52:47 +01:00
Fix gpg-agent secure memory leak in OpenPGP private key import.
2011-04-20 Marcus Brinkmann <mb@g10code.com> * command.c (cmd_import_key): Release key from failed import before converting openpgp private key in the openpgp-private-key case.
This commit is contained in:
parent
b5f585f7d7
commit
70b871abbc
@ -1,3 +1,9 @@
|
|||||||
|
2011-04-20 Marcus Brinkmann <mb@g10code.com>
|
||||||
|
|
||||||
|
* command.c (cmd_import_key): Release key from failed import
|
||||||
|
before converting openpgp private key in the openpgp-private-key
|
||||||
|
case.
|
||||||
|
|
||||||
2011-04-17 Ben Kibbey <bjk@luxsci.net>
|
2011-04-17 Ben Kibbey <bjk@luxsci.net>
|
||||||
|
|
||||||
* command.c (cmd_passwd): Check for an error before presetting.
|
* command.c (cmd_passwd): Check for an error before presetting.
|
||||||
|
@ -1827,6 +1827,8 @@ cmd_import_key (assuan_context_t ctx, char *line)
|
|||||||
used to protect the key using the same code as for regular
|
used to protect the key using the same code as for regular
|
||||||
key import. */
|
key import. */
|
||||||
|
|
||||||
|
xfree (key);
|
||||||
|
key = NULL;
|
||||||
err = convert_from_openpgp (ctrl, openpgp_sexp, grip,
|
err = convert_from_openpgp (ctrl, openpgp_sexp, grip,
|
||||||
ctrl->server_local->keydesc, cache_nonce,
|
ctrl->server_local->keydesc, cache_nonce,
|
||||||
&key, &passphrase);
|
&key, &passphrase);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user