From 335805e1d48258dc96d360f72aa92db32f3d82d3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 25 Feb 2022 11:55:07 +0900 Subject: [PATCH] gpg: Clarify a call of ask_for_detached_datafile. * g10/mainproc.c (proc_tree): Call ask_for_detached_datafile with MD2=NULL. -- Here, c->mfx.md2 is always NULL, in fact. But, text-wise (when searching the use of "mfx.md2"), before the change, it used mfx.md2, which is irrelevant in the handling of PKT_ONEPASS_SIG. Note that: One-Pass Signature is not available in PGP2. This fix removes (text-wise) unmatch of the calls of functions hash_datafile_by_fd hash_datafiles, and ask_for_detached_datafile. Fixes-commit: 88a916cdd40e43312ffcde6bb1c157fe1c122f74 Signed-off-by: NIIBE Yutaka --- g10/mainproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/mainproc.c b/g10/mainproc.c index aa028e91b..f44e68453 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -2544,7 +2544,7 @@ proc_tree (CTX c, kbnode_t node) } else { - rc = ask_for_detached_datafile (c->mfx.md, c->mfx.md2, + rc = ask_for_detached_datafile (c->mfx.md, NULL, iobuf_get_real_fname (c->iobuf), use_textmode); }