scd: fix get_public_key for OpenPGPcard v1.0.
authorJoshua Rogers <git@internot.info>
Sat, 20 Dec 2014 00:38:53 +0000 (11:38 +1100)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 8 Jan 2015 02:18:09 +0000 (11:18 +0900)
commit3ca1f4098c70d322658cfaaa0d12164e6ac6d5ad
tree84dfaea4181c13b1d15fc8063f373b80d3d4eda2
parentda66ad5bba4215b9ddd0cb927a89aa75355632aa
scd: fix get_public_key for OpenPGPcard v1.0.

* scd/app-openpgp.c (get_public_key): correctly close 'fp' upon use.

--

Inside the get_public_key function, 'fp' was opened using popen, but
incorrectly closed using fclose.

Debian-Bug-Id: 773474
g10/app-openpgp.c