mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
* decrypt.c (decrypt_messages): Fixed error handling; the fucntion
used to re-loop with same file after an error. Reported by Joseph Walton.
This commit is contained in:
parent
78da3fdfaa
commit
5a9e7663c1
1
THANKS
1
THANKS
@ -102,6 +102,7 @@ John A. Martin jam@jamux.com
|
|||||||
Johnny Teveßen j.tevessen@gmx.de
|
Johnny Teveßen j.tevessen@gmx.de
|
||||||
Jörg Schilling schilling@fokus.gmd.de
|
Jörg Schilling schilling@fokus.gmd.de
|
||||||
Jos Backus Jos.Backus@nl.origin-it.com
|
Jos Backus Jos.Backus@nl.origin-it.com
|
||||||
|
Joseph Walton joe@kafsemo.org
|
||||||
Jun Kuriyama kuriyama@sky.rim.or.jp
|
Jun Kuriyama kuriyama@sky.rim.or.jp
|
||||||
Kahil D. Jallad kdj4@cs.columbia.edu
|
Kahil D. Jallad kdj4@cs.columbia.edu
|
||||||
Karl Fogel kfogel@guanabana.onshore.com
|
Karl Fogel kfogel@guanabana.onshore.com
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2003-04-09 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* decrypt.c (decrypt_messages): Fixed error handling; the fucntion
|
||||||
|
used to re-loop with same file after an error. Reported by Joseph
|
||||||
|
Walton.
|
||||||
|
|
||||||
2003-04-08 David Shaw <dshaw@jabberwocky.com>
|
2003-04-08 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* hkp.c (dehtmlize): Fix bug #121 (memory corruption on some
|
* hkp.c (dehtmlize): Fix bug #121 (memory corruption on some
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* decrypt.c - verify signed data
|
/* decrypt.c - verify signed data
|
||||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
* Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -99,12 +99,12 @@ decrypt_messages(int nfiles, char **files)
|
|||||||
print_file_status(STATUS_FILE_START, *files, 3);
|
print_file_status(STATUS_FILE_START, *files, 3);
|
||||||
output = make_outfile_name(*files);
|
output = make_outfile_name(*files);
|
||||||
if (!output)
|
if (!output)
|
||||||
continue;
|
goto next_file;
|
||||||
fp = iobuf_open(*files);
|
fp = iobuf_open(*files);
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
log_error(_("can't open `%s'\n"), print_fname_stdin(*files));
|
log_error(_("can't open `%s'\n"), print_fname_stdin(*files));
|
||||||
continue;
|
goto next_file;
|
||||||
}
|
}
|
||||||
if (!opt.no_armor)
|
if (!opt.no_armor)
|
||||||
{
|
{
|
||||||
@ -122,17 +122,12 @@ decrypt_messages(int nfiles, char **files)
|
|||||||
p = get_last_passphrase();
|
p = get_last_passphrase();
|
||||||
set_next_passphrase(p);
|
set_next_passphrase(p);
|
||||||
m_free (p);
|
m_free (p);
|
||||||
files++;
|
|
||||||
m_free(output);
|
next_file:
|
||||||
|
/* Note that we emit file_done even after an error. */
|
||||||
write_status( STATUS_FILE_DONE );
|
write_status( STATUS_FILE_DONE );
|
||||||
|
m_free(output);
|
||||||
|
files++;
|
||||||
}
|
}
|
||||||
set_next_passphrase(NULL);
|
set_next_passphrase(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user