aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/mainproc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 2429e1006..039db9ccd 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -798,15 +798,12 @@ proc_encrypted (CTX c, PACKET *pkt)
compliance_de_vs |= 2;
}
- /* Trigger the deferred error. The second condition makes sure that a
- * log_error printed in the cry_cipher_checktag never gets ignored. */
+ /* Trigger the deferred error. */
if (!result && early_plaintext)
result = gpg_error (GPG_ERR_BAD_DATA);
else if (!result && opt.show_only_session_key)
result = -1;
- else if (!result && pkt->pkt.encrypted->aead_algo
- && log_get_errorcount (0))
- result = gpg_error (GPG_ERR_BAD_SIGNATURE);
+
if (result == -1)
;