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:16:51 +0000 (11:16 +0900)
commit40f476867c5874602da921d48e339ae3612a0dcc
tree601c0792fe05bffa6ec28d82c26654b3dcc72762
parent4f0d526b7df871318508f8c3d2f57e7069c47e6f
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
scd/app-openpgp.c