Home GnuPG
Diffusion GnuPG 0fd4cd8503df

scd: Avoid double-free on error condition in scd
0fd4cd8503dfUnpublished

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
gniibeCommitted on Jan 13 2015, 2:52 AM
Parents
rG1fc4dc541af7: avoid future chance of using uninitialized memory
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG0fd4cd8503df: scd: Avoid double-free on error condition in scd (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Jan 13 2015, 2:52 AM