mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-01 22:28:02 +02:00
gpg: Make sure that internal key import is done with a binary stream.
* g10/import.c (import_keys_internal): Open stream in binary mode. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
20a16833ee
commit
829949f382
|
@ -465,7 +465,7 @@ import_keys_es_stream (ctrl_t ctrl, estream_t fp,
|
||||||
int rc;
|
int rc;
|
||||||
iobuf_t inp;
|
iobuf_t inp;
|
||||||
|
|
||||||
inp = iobuf_esopen (fp, "r", 1);
|
inp = iobuf_esopen (fp, "rb", 1);
|
||||||
if (!inp)
|
if (!inp)
|
||||||
{
|
{
|
||||||
rc = gpg_error_from_syserror ();
|
rc = gpg_error_from_syserror ();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user