Index: gnupg/g10/decrypt.c =================================================================== --- gnupg/g10/decrypt.c +++ gnupg/g10/decrypt.c @@ -99,12 +99,12 @@ print_file_status(STATUS_FILE_START, *files, 3); output = make_outfile_name(*files); if (!output) - continue; + goto loop_end; fp = iobuf_open(*files); if (!fp) { log_error(_("can't open `%s'\n"), print_fname_stdin(*files)); - continue; + goto loop_end; } if (!opt.no_armor) { @@ -122,9 +122,11 @@ p = get_last_passphrase(); set_next_passphrase(p); m_free (p); - files++; m_free(output); write_status( STATUS_FILE_DONE ); + + loop_end: + files++; } set_next_passphrase(NULL); }