diff options
author | Werner Koch <[email protected]> | 2017-07-21 15:48:40 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-21 15:49:10 +0000 |
commit | e888f7af6571ecd3994fd55cc18c9e2df7fd0c60 (patch) | |
tree | b5f56bd9b8dbfd9fabb0555483537a29b7a3ea79 /agent/command-ssh.c | |
parent | gpg: Use macros to check the signature class. (diff) | |
download | gnupg-e888f7af6571ecd3994fd55cc18c9e2df7fd0c60.tar.gz gnupg-e888f7af6571ecd3994fd55cc18c9e2df7fd0c60.zip |
gpg: Fix possible double free of the card serialno.
* g10/free-packet.c (copy_public_key): Copy fields serialno and
updateurl.
--
The PK->serialno is used to get the version of the card to decide
whether it does support other algorithms than SHA-1. This value is
cached but no deep copy was done when calling copy_public_key.
Bug detected by importing some public keys and then importing a secret
key which led to a double free.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions