aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-07-21 15:48:40 +0000
committerWerner Koch <[email protected]>2017-07-21 15:49:10 +0000
commite888f7af6571ecd3994fd55cc18c9e2df7fd0c60 (patch)
treeb5f56bd9b8dbfd9fabb0555483537a29b7a3ea79 /agent/command-ssh.c
parentgpg: Use macros to check the signature class. (diff)
downloadgnupg-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