diff options
author | Joshua Rogers <[email protected]> | 2014-12-20 00:38:53 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-01-08 02:18:09 +0000 |
commit | 3ca1f4098c70d322658cfaaa0d12164e6ac6d5ad (patch) | |
tree | 84dfaea4181c13b1d15fc8063f373b80d3d4eda2 | |
parent | gpg: release DEK soon after its use. (diff) | |
download | gnupg-3ca1f4098c70d322658cfaaa0d12164e6ac6d5ad.tar.gz gnupg-3ca1f4098c70d322658cfaaa0d12164e6ac6d5ad.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
-rw-r--r-- | g10/app-openpgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/app-openpgp.c b/g10/app-openpgp.c index a3a977b31..b51d4184d 100644 --- a/g10/app-openpgp.c +++ b/g10/app-openpgp.c @@ -1250,7 +1250,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", |