diff options
author | Joshua Rogers <git@internot.info> | 2014-12-20 01:38:53 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-01-08 03:12:42 +0100 |
commit | 100b322f5da3066bab5a2b0eb234c631c581c0e4 (patch) | |
tree | ce06d23240dd0217162469502cc164340d290cef /scd | |
parent | dirmngr: fix LDAP query PATTERNS limit check. (diff) | |
download | gnupg2-100b322f5da3066bab5a2b0eb234c631c581c0e4.tar.xz gnupg2-100b322f5da3066bab5a2b0eb234c631c581c0e4.zip |
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
Diffstat (limited to 'scd')
-rw-r--r-- | scd/app-openpgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 475d84433..7f1ec43d6 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -1451,7 +1451,7 @@ get_public_key (app_t app, int keyno) } err = retrieve_key_material (fp, hexkeyid, &m, &mlen, &e, &elen); - fclose (fp); + pclose (fp); if (err) { log_error ("error while retrieving key material through pipe: %s\n", |