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:12:42 +0000 (11:12 +0900)
commit100b322f5da3066bab5a2b0eb234c631c581c0e4
treece06d23240dd0217162469502cc164340d290cef
parent22b15fccffe613f455f9748c048c8e451724a842
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