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
This commit is contained in:
Joshua Rogers 2014-12-20 11:38:53 +11:00 committed by NIIBE Yutaka
parent 22b15fccff
commit 100b322f5d
1 changed files with 1 additions and 1 deletions

View File

@ -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",