Home GnuPG
Diffusion GnuPG b0b3803e8c29

scd: Avoid double-free on error condition in scd
b0b3803e8c29Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

scd: Avoid double-free on error condition in scd

* scd/command.c (cmd_readkey): avoid double-free of cert

When ksba_cert_new() fails, cert will be double-freed.

Original patch changed by wk to do the free only at leave.

Details

Provenance
dkgAuthored on Dec 20 2014, 12:07 AM
wernerCommitted on Dec 22 2014, 1:17 PM
Parents
rG367b073ab5f4: avoid future chance of using uninitialized memory
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGb0b3803e8c29: scd: Avoid double-free on error condition in scd (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Dec 22 2014, 1:17 PM