mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-12 22:11:29 +02:00
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:
parent
22b15fccff
commit
100b322f5d
@ -1451,7 +1451,7 @@ get_public_key (app_t app, int keyno)
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = retrieve_key_material (fp, hexkeyid, &m, &mlen, &e, &elen);
|
err = retrieve_key_material (fp, hexkeyid, &m, &mlen, &e, &elen);
|
||||||
fclose (fp);
|
pclose (fp);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
log_error ("error while retrieving key material through pipe: %s\n",
|
log_error ("error while retrieving key material through pipe: %s\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user