mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01: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;
|
||||
iobuf_t inp;
|
||||
|
||||
inp = iobuf_esopen (fp, "r", 1);
|
||||
inp = iobuf_esopen (fp, "rb", 1);
|
||||
if (!inp)
|
||||
{
|
||||
rc = gpg_error_from_syserror ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user